Jet\DataModel_Query_Select_Item_Expression

It is a class representing an expression within the SELECT part of the query - for example, calling a SQL function.It is a subentity of the Jet\DataModel_Query_Select class and also a subentity of the Jet\DataModel_Query_Select_Item class.

Overview of methods

Method Meaning of
public __construct(
string $expression,
DataModel_Definition_Property[] $properties=[]
)
Parameters:
  • $expression
    Expression (e.g. SQL function call).
  • $properties
    Possible definitions of the properties used in the expression.
public setProperties(
DataModel_Definition_Property[] $properties
) : void
Sets the list of properties used in the expression.
public getProperties(
) : DataModel_Definition_Property[]
Returns the definitions of any properties used.
public getExpression(
) : string
It returns the expression in its raw form.
public toString(
callable $property_name_to_backend_column_name_callback=null
) : string
Converts the expression to a string, ideally using a backend that converts any property names used into the correct format (relevant to the database type).
Previous chapter
Jet\DataModel_Query_Select_Item
Next chapter
Jet\DataModel_Query_Where