db\Command dropCommentFromColumn()

dropCommentFromColumn() public method (available since version 2.0.8) Builds a SQL command for dropping comment from column public $this dropCommentFromColumn ( $table, $column )$table string The table whose column is to be commented. The table name will be properly quoted by the method. $column string The name of the column to be commented. The column name will be properly quoted by the method. return $this The command object itself

helpers\BaseArrayHelper isSubset()

isSubset() public static method (available since version 2.0.7) Checks whether an array or Traversable is a subset of another array or Traversable. This method will return true, if all elements of $needles are contained in $haystack. If at least one element is missing, false will be returned. public static boolean isSubset ( $needles, $haystack, $strict = false )$needles array|Traversable The values that must all be in $haystack. $haystack array|Traversable The set of value to sear

widgets\ActiveForm field()

field() public method Generates a form field. A form field is associated with a model and an attribute. It contains a label, an input and an error message and use them to interact with end users to collect their inputs for the attribute. See also $fieldConfig. public yii\widgets\ActiveField field ( $model, $attribute, $options = [] )$model yii\base\Model The data model. $attribute string The attribute name or expression. See yii\helpers\Html::getAttributeName() for the format about att

helpers\BaseArrayHelper remove()

remove() public static method Removes an item from an array and returns the value. If the key does not exist in the array, the default value will be returned instead. Usage examples, // $array = ['type' => 'A', 'options' => [1, 2]]; // working with array $type = \yii\helpers\ArrayHelper::remove($array, 'type'); // $array content // $array = ['options' => [1, 2]]; public static mixed|null remove ( &$array, $key, $default = null )$array array The array to extract value from

helpers\BaseArrayHelper getColumn()

getColumn() public static method Returns the values of a specified column in an array. The input array should be multidimensional or an array of objects. For example, $array = [ ['id' => '123', 'data' => 'abc'], ['id' => '345', 'data' => 'def'], ]; $result = ArrayHelper::getColumn($array, 'id'); // the result is: ['123', '345'] // using anonymous function $result = ArrayHelper::getColumn($array, function ($element) { return $element['id']; }); public static array

db\Connection $schemaCacheExclude

$schemaCacheExclude public property List of tables whose metadata should NOT be cached. Defaults to empty array. The table names may contain schema prefix, if any. Do not quote the table names. See also $enableSchemaCache. public array $schemaCacheExclude = []

debug\Panel $actions

$actions public property Array of actions to add to the debug modules default controller. This array will be merged with all other panels actions property. See yii\base\Controller::actions() for the format. public array $actions = []

db\Query count()

count() public method Returns the number of records. public integer|string count ( $q = '*', $db = null )$q string The COUNT expression. Defaults to '*'. Make sure you properly quote column names in the expression. $db yii\db\Connection The database connection used to generate the SQL statement. If this parameter is not given (or null), the db application component will be used. return integer|string Number of records. The result may be a string depending on the underlying database

filters\Cors addCorsHeaders()

addCorsHeaders() public method Adds the CORS headers to the response public void addCorsHeaders ( $response, $headers )$response yii\web\Response $headers

web\Session openSession()

openSession() public method Session open handler. This method should be overridden if $useCustomStorage returns true. Do not call this method directly. public boolean openSession ( $savePath, $sessionName )$savePath string Session save path $sessionName string Session name return boolean Whether session is opened successfully