/
var
/
www
/
vhosts
/
nabawater
/
vendor
/
yiisoft
/
yii2
/
db
/
/var/www/vhosts/nabawater/vendor/yiisoft/yii2/db
mkdir
upload
Name
Size
Mode
Actions
conditions/
-
0755
rm
cubrid/
-
0755
rm
mssql/
-
0755
rm
mysql/
-
0755
rm
oci/
-
0755
rm
pgsql/
-
0755
rm
sqlite/
-
0755
rm
ActiveQuery.php
31506
0644
edit
dl
rm
ActiveQueryInterface.php
4542
0644
edit
dl
rm
ActiveQueryTrait.php
6315
0644
edit
dl
rm
ActiveRecord.php
29789
0644
edit
dl
rm
ActiveRecordInterface.php
21207
0644
edit
dl
rm
ActiveRelationTrait.php
23292
0644
edit
dl
rm
AfterSaveEvent.php
553
0644
edit
dl
rm
ArrayExpression.php
5400
0644
edit
dl
rm
BaseActiveRecord.php
69538
0644
edit
dl
rm
BatchQueryResult.php
4905
0644
edit
dl
rm
CheckConstraint.php
458
0644
edit
dl
rm
ColumnSchema.php
5356
0644
edit
dl
rm
ColumnSchemaBuilder.php
13287
0644
edit
dl
rm
Command.php
52026
0644
edit
dl
rm
Connection.php
45376
0644
edit
dl
rm
Constraint.php
566
0644
edit
dl
rm
ConstraintFinderInterface.php
6454
0644
edit
dl
rm
ConstraintFinderTrait.php
11204
0644
edit
dl
rm
DataReader.php
8518
0644
edit
dl
rm
DefaultValueConstraint.php
472
0644
edit
dl
rm
Exception.php
1457
0644
edit
dl
rm
Expression.php
1909
0644
edit
dl
rm
ExpressionBuilder.php
741
0644
edit
dl
rm
ExpressionBuilderInterface.php
860
0644
edit
dl
rm
ExpressionBuilderTrait.php
707
0644
edit
dl
rm
ExpressionInterface.php
615
0644
edit
dl
rm
ForeignKeyConstraint.php
937
0644
edit
dl
rm
IndexConstraint.php
553
0644
edit
dl
rm
IntegrityException.php
546
0644
edit
dl
rm
JsonExpression.php
2684
0644
edit
dl
rm
Migration.php
26933
0644
edit
dl
rm
MigrationInterface.php
1226
0644
edit
dl
rm
PdoValue.php
1370
0644
edit
dl
rm
PdoValueBuilder.php
692
0644
edit
dl
rm
Query.php
49520
0644
edit
dl
rm
QueryBuilder.php
74240
0644
edit
dl
rm
QueryExpressionBuilder.php
1044
0644
edit
dl
rm
QueryInterface.php
12820
0644
edit
dl
rm
QueryTrait.php
15155
0644
edit
dl
rm
Schema.php
31377
0644
edit
dl
rm
SchemaBuilderTrait.php
11495
0644
edit
dl
rm
SqlToken.php
9676
0644
edit
dl
rm
SqlTokenizer.php
14208
0644
edit
dl
rm
StaleObjectException.php
447
0644
edit
dl
rm
TableSchema.php
3129
0644
edit
dl
rm
Transaction.php
9365
0644
edit
dl
rm
ViewFinderTrait.php
1614
0644
edit
dl
rm
Edit:
/var/www/vhosts/nabawater/vendor/yiisoft/yii2/db/ArrayExpression.php
(5400B)
<?php /** * @link http://www.yiiframework.com/ * @copyright Copyright (c) 2008 Yii Software LLC * @license http://www.yiiframework.com/license/ */ namespace yii\db; use Traversable; use yii\base\InvalidConfigException; /** * Class ArrayExpression represents an array SQL expression. * * Expressions of this type can be used in conditions as well: * * ```php * $query->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 <d.naumenko.a@gmail.com> * @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 <p> * An offset to check for. * </p> * @return bool true on success or false on failure. * </p> * <p> * 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 <p> * The offset to retrieve. * </p> * @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 <p> * The offset to assign the value to. * </p> * @param mixed $value <p> * The value to set. * </p> * @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 <p> * The offset to unset. * </p> * @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. * </p> * <p> * 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 <b>Iterator</b> or * <b>Traversable</b> * @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); } }
Save
cmd:
run