/var/www/vhosts/nabawater/vendor/yiisoft/yii2/db
NameSizeModeActions
conditions/-0755rm
cubrid/-0755rm
mssql/-0755rm
mysql/-0755rm
oci/-0755rm
pgsql/-0755rm
sqlite/-0755rm
ActiveQuery.php315060644editdlrm
ActiveQueryInterface.php45420644editdlrm
ActiveQueryTrait.php63150644editdlrm
ActiveRecord.php297890644editdlrm
ActiveRecordInterface.php212070644editdlrm
ActiveRelationTrait.php232920644editdlrm
AfterSaveEvent.php5530644editdlrm
ArrayExpression.php54000644editdlrm
BaseActiveRecord.php695380644editdlrm
BatchQueryResult.php49050644editdlrm
CheckConstraint.php4580644editdlrm
ColumnSchema.php53560644editdlrm
ColumnSchemaBuilder.php132870644editdlrm
Command.php520260644editdlrm
Connection.php453760644editdlrm
Constraint.php5660644editdlrm
ConstraintFinderInterface.php64540644editdlrm
ConstraintFinderTrait.php112040644editdlrm
DataReader.php85180644editdlrm
DefaultValueConstraint.php4720644editdlrm
Exception.php14570644editdlrm
Expression.php19090644editdlrm
ExpressionBuilder.php7410644editdlrm
ExpressionBuilderInterface.php8600644editdlrm
ExpressionBuilderTrait.php7070644editdlrm
ExpressionInterface.php6150644editdlrm
ForeignKeyConstraint.php9370644editdlrm
IndexConstraint.php5530644editdlrm
IntegrityException.php5460644editdlrm
JsonExpression.php26840644editdlrm
Migration.php269330644editdlrm
MigrationInterface.php12260644editdlrm
PdoValue.php13700644editdlrm
PdoValueBuilder.php6920644editdlrm
Query.php495200644editdlrm
QueryBuilder.php742400644editdlrm
QueryExpressionBuilder.php10440644editdlrm
QueryInterface.php128200644editdlrm
QueryTrait.php151550644editdlrm
Schema.php313770644editdlrm
SchemaBuilderTrait.php114950644editdlrm
SqlToken.php96760644editdlrm
SqlTokenizer.php142080644editdlrm
StaleObjectException.php4470644editdlrm
TableSchema.php31290644editdlrm
Transaction.php93650644editdlrm
ViewFinderTrait.php16140644editdlrm
Edit: /var/www/vhosts/nabawater/vendor/yiisoft/yii2/db/ArrayExpression.php (5400B)
andWhere(['@>', 'items', new ArrayExpression([1, 2, 3], 'integer')]) * ``` * * which, depending on DBMS, will result in a well-prepared condition. For example, in * PostgreSQL it will be compiled to `WHERE "items" @> ARRAY[1, 2, 3]::integer[]`. * * @author Dmytro Naumenko * @since 2.0.14 */ class ArrayExpression implements ExpressionInterface, \ArrayAccess, \Countable, \IteratorAggregate { /** * @var null|string the type of the array elements. Defaults to `null` which means the type is * not explicitly specified. * * Note that in case when type is not specified explicitly and DBMS can not guess it from the context, * SQL error will be raised. */ private $type; /** * @var array|QueryInterface the array's content. * In can be represented as an array of values or a [[Query]] that returns these values. */ private $value; /** * @var int the number of indices needed to select an element */ private $dimension; /** * ArrayExpression constructor. * * @param array|QueryInterface|mixed $value the array content. Either represented as an array of values or a Query that * returns these values. A single value will be considered as an array containing one element. * @param string|null $type the type of the array elements. Defaults to `null` which means the type is * not explicitly specified. In case when type is not specified explicitly and DBMS can not guess it from the context, * SQL error will be raised. * @param int $dimension the number of indices needed to select an element */ public function __construct($value, $type = null, $dimension = 1) { if ($value instanceof self) { $value = $value->getValue(); } $this->value = $value; $this->type = $type; $this->dimension = $dimension; } /** * @return null|string * @see type */ public function getType() { return $this->type; } /** * @return array|mixed|QueryInterface * @see value */ public function getValue() { return $this->value; } /** * @return int the number of indices needed to select an element * @see dimensions */ public function getDimension() { return $this->dimension; } /** * Whether a offset exists * * @link http://php.net/manual/en/arrayaccess.offsetexists.php * @param mixed $offset

* An offset to check for. *

* @return bool true on success or false on failure. *

*

* The return value will be casted to boolean if non-boolean was returned. * @since 2.0.14 */ public function offsetExists($offset) { return isset($this->value[$offset]); } /** * Offset to retrieve * * @link http://php.net/manual/en/arrayaccess.offsetget.php * @param mixed $offset

* The offset to retrieve. *

* @return mixed Can return all value types. * @since 2.0.14 */ public function offsetGet($offset) { return $this->value[$offset]; } /** * Offset to set * * @link http://php.net/manual/en/arrayaccess.offsetset.php * @param mixed $offset

* The offset to assign the value to. *

* @param mixed $value

* The value to set. *

* @return void * @since 2.0.14 */ public function offsetSet($offset, $value) { $this->value[$offset] = $value; } /** * Offset to unset * * @link http://php.net/manual/en/arrayaccess.offsetunset.php * @param mixed $offset

* The offset to unset. *

* @return void * @since 2.0.14 */ public function offsetUnset($offset) { unset($this->value[$offset]); } /** * Count elements of an object * * @link http://php.net/manual/en/countable.count.php * @return int The custom count as an integer. *

*

* The return value is cast to an integer. * @since 2.0.14 */ public function count() { return count($this->value); } /** * Retrieve an external iterator * * @link http://php.net/manual/en/iteratoraggregate.getiterator.php * @return Traversable An instance of an object implementing Iterator or * Traversable * @since 2.0.14.1 * @throws InvalidConfigException when ArrayExpression contains QueryInterface object */ public function getIterator() { $value = $this->getValue(); if ($value instanceof QueryInterface) { throw new InvalidConfigException('The ArrayExpression class can not be iterated when the value is a QueryInterface object'); } if ($value === null) { $value = []; } return new \ArrayIterator($value); } }