FixedOrderExpression ​
- Type
- Class
- Namespace
- craft\db
- Inherits
- craft\db\FixedOrderExpression » yii\db\Expression » yii\base\BaseObject
- Implements
- yii\base\Configurable, yii\db\ExpressionInterface
- Since
- 3.0.0
FixedOrderExpression represents the SQL used to apply a fixed order to a DB result.
Public Properties ​
| Property | Description |
|---|---|
| column | string – The column name that contains the values |
| db | craft\db\Connection – The DB connection |
| expression | string – The DB expression |
| params | array – List of parameters that should be bound for this expression. |
| values | array – The column values, in the order in which the rows should be returned in |
column ​
- Type
- string
- Default value
null
The column name that contains the values
db ​
- Type
- craft\db\Connection
- Default value
null
The DB connection
values ​
- Type
- array
- Default value
null
The column values, in the order in which the rows should be returned in
Public Methods ​
| Method | Description |
|---|---|
| __call() | Calls the named method which is not a class method. |
| __construct() | Constructor |
| __get() | Returns the value of an object property. |
| __isset() | Checks if a property is set, i.e. defined and not null. |
| __set() | Sets value of an object property. |
| __toString() | String magic method. |
| __unset() | Sets an object property to null. |
| canGetProperty() | Returns a value indicating whether a property can be read. |
| canSetProperty() | Returns a value indicating whether a property can be set. |
| className() | Returns the fully qualified name of this class. |
| hasMethod() | Returns a value indicating whether a method is defined. |
| hasProperty() | Returns a value indicating whether a property is defined. |
| init() | Initializes the object. |
__construct() ​
Constructor
Arguments ​
$column(string) – The column name that contains the values.$values(array) – The column values, in the order in which the rows should be returned in.$db(craft\db\Connection) – The DB connection$params(array) – Parameters$config(array) – Name-value pairs that will be used to initialize the object properties.