Craft 3 Class Reference

Class craft\db\FixedOrderExpression

Inheritance
craft\db\FixedOrderExpression » yii\db\Expression » yii\base\BaseObject
Implements
yii\base\Configurable, yii\db\ExpressionInterface
Available since version
3.0
Source Code
https://github.com/craftcms/cms/blob/master/src/db/FixedOrderExpression.php

FixedOrderExpression represents the SQL used to apply a fixed order to a DB result.

Public Properties
Property Type Description Defined By
$column string The column name that contains the values craft\db\FixedOrderExpression
$db craft\db\Connection The DB connection craft\db\FixedOrderExpression
$expression string The DB expression yii\db\Expression
$params array List of parameters that should be bound for this expression. yii\db\Expression
$values array The column values, in the order in which the rows should be returned in craft\db\FixedOrderExpression
Public Methods
Method Description Defined By
__call() Calls the named method which is not a class method. yii\base\BaseObject
__construct() Constructor craft\db\FixedOrderExpression
__get() Returns the value of an object property. yii\base\BaseObject
__isset() Checks if a property is set, i.e. defined and not null. yii\base\BaseObject
__set() Sets value of an object property. yii\base\BaseObject
__toString() String magic method. yii\db\Expression
__unset() Sets an object property to null. yii\base\BaseObject
canGetProperty() Returns a value indicating whether a property can be read. yii\base\BaseObject
canSetProperty() Returns a value indicating whether a property can be set. yii\base\BaseObject
className() Returns the fully qualified name of this class. yii\base\BaseObject
hasMethod() Returns a value indicating whether a method is defined. yii\base\BaseObject
hasProperty() Returns a value indicating whether a property is defined. yii\base\BaseObject
init() Initializes the object. yii\base\BaseObject

Property Details

$column public property #

The column name that contains the values

public string $column null

$db public property #

The DB connection

public craft\db\Connection $db null

$values public property #

The column values, in the order in which the rows should be returned in

public array $values null

Method Details

__construct() public method #

Constructor

public void __construct ( \craft\db\string $column, array $values, craft\db\Connection $db, array $params = [], array $config = [] )
$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.