CoalesceColumnsExpression ​
- Type
- Class
- Namespace
- craft\db
- Inherits
- craft\db\CoalesceColumnsExpression » yii\base\BaseObject
- Implements
- craft\db\ExpressionInterface, yii\base\Configurable
- Since
- 5.1.0
CoalesceColumnsExpression represents a COALESCE()
SQL statement for a list of columns.
Public Properties ​
Property | Description |
---|---|
columns | string[] – The columns that should be coalesced. |
columns
​
- Type
- string[]
- Default value
null
The columns that should be coalesced.
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. |
__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. |
getSql() | |
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 ​
getSql()
​
Arguments ​
$params