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