Expression
final class Expression extends SerializableComponent (View source)
Parses a reference to an expression (column, table or database name, function call, mathematical expression, etc.).
Properties
| string|null | $database | The name of this database. |
|
| string|null | $table | The name of this table. |
|
| string|null | $column | The name of the column. |
|
| string|null | $expr | The sub-expression. |
|
| string|null | $alias | The alias of this expression. |
|
| string|null | $function | The name of the function. |
|
| string|null | $subquery | The type of subquery. |
Methods
Syntax: new Expression('expr') new Expression('expr', 'alias') new Expression('database', 'table', 'column') new Expression('database', 'table', 'column', 'alias')
Builds the string representation of a component of this type.
Details
string
__toString()
No description
array
jsonSerialize()
No description
__construct(string|null $database = null, string|null $table = null, string|null $column = null, string|null $alias = null)
Syntax: new Expression('expr') new Expression('expr', 'alias') new Expression('database', 'table', 'column') new Expression('database', 'table', 'column', 'alias')
If the database, table or column name is not required, pass an empty string.
string
build()
Builds the string representation of a component of this type.
In other words, this function represents the inverse function of {\PhpMyAdmin\SqlParser\Component::parse()}.