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

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

View source

Public Properties

PropertyDescription
columnstring – The column name that contains the values
dbcraft\db\Connection – The DB connection
expressionstring – The DB expression
paramsarray – List of parameters that should be bound for this expression.
valuesarray – The column values, in the order in which the rows should be returned in

column

Type
string

The column name that contains the values

View source

db

Type
craft\db\Connection

The DB connection

View source

values

Type
array

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

View source

Public Methods

MethodDescription
__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

View source

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.