uawdijnntqw1x1x1
IP : 216.73.216.107
Hostname : toronto-dev2
Kernel : Linux toronto-dev2 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
srv
/
users
/
craft4
/
apps
/
craft4-newsite-space
/
vendor
/
.
/
craftcms
/
.
/
cms
/
src
/
db
/
FixedOrderExpression.php
/
/
<?php /** * @link https://craftcms.com/ * @copyright Copyright (c) Pixel & Tonic, Inc. * @license https://craftcms.github.io/license/ */ namespace craft\db; use yii\db\Expression; /** * FixedOrderExpression represents the SQL used to apply a fixed order to a DB result. * * @author Pixel & Tonic, Inc. <support@pixelandtonic.com> * @since 3.0.0 */ class FixedOrderExpression extends Expression { /** * @var string The column name that contains the values */ public string $column; /** * @var array The column values, in the order in which the rows should be returned in */ public array $values; /** * @var Connection The DB connection */ public Connection $db; /** * Constructor * * @param string $column The column name that contains the values. * @param array $values The column values, in the order in which the rows should be returned in. * @param Connection $db The DB connection * @param array $params Parameters * @param array $config Name-value pairs that will be used to initialize the object properties. */ public function __construct(string $column, array $values, Connection $db, array $params = [], array $config = []) { $this->column = $column; $this->values = $values; $this->db = $db; $expression = $db->getQueryBuilder()->fixedOrder($column, $values); parent::__construct($expression, $params, $config); } }
/srv/users/craft4/apps/craft4-newsite-space/vendor/./craftcms/./cms/src/db/FixedOrderExpression.php