base\Security generateRandomKey()

generateRandomKey() public method Generates specified number of random bytes. Note that output may not be ASCII. See also generateRandomString() if you need a string. public string generateRandomKey ( $length = 32 )$length integer The number of bytes to generate return string The generated random bytes throws yii\base\InvalidParamException if wrong length is specified throws yii\base\Exception on failure.

helpers\BaseStringHelper dirname()

dirname() public static method Returns parent directory's path. This method is similar to dirname() except that it will treat both \ and / as directory separators, independent of the operating system. See also http://www.php.net/manual/en/function.basename.php. public static string dirname ( $path )$path string A path string. return string The parent directory's path.

mongodb\Query getCollection()

getCollection() public method Returns the Mongo collection for this query. public yii\mongodb\Collection getCollection ( $db = null )$db yii\mongodb\Connection Mongo connection. return yii\mongodb\Collection Collection instance.

db\QueryTrait normalizeOrderBy()

normalizeOrderBy() protected method Normalizes format of ORDER BY data protected array normalizeOrderBy ( $columns )$columns array|string|yii\db\Expression The columns value to normalize. See orderBy() and addOrderBy().

widgets\ActiveField label()

label() public method Generates a label tag for $attribute. public $this label ( $label = null, $options = [] )$label null|string|false The label to use. If null, the label will be generated via yii\base\Model::getAttributeLabel(). If false, the generated field will not contain the label part. Note that this will NOT be encoded. $options null|array The tag options in terms of name-value pairs. It will be merged with $labelOptions. The options will be rendered as the attributes of t

db\QueryTrait filterCondition()

filterCondition() protected method Removes empty operands from the given query condition. protected array filterCondition ( $condition )$condition array The original condition return array The condition with empty operands removed. throws yii\base\NotSupportedException if the condition operator is not supported

base\Model isAttributeRequired()

isAttributeRequired() public method Returns a value indicating whether the attribute is required. This is determined by checking if the attribute is associated with a required validation rule in the current $scenario. Note that when the validator has a conditional validation applied using $when this method will return false regardless of the when condition because it may be called be before the model is loaded with data. public boolean isAttributeRequired ( $attribute )$attribute string

sphinx\Schema getIndexTypes()

getIndexTypes() public method Returns all index types in the Sphinx. public array getIndexTypes ( $refresh = false )$refresh boolean Whether to fetch the latest available index types. If this is false, index types fetched previously (if available) will be returned. return array All index types in the Sphinx in format: index name => index type.

db\BaseActiveRecord EVENT_BEFORE_UPDATE

EVENT_BEFORE_UPDATE event of type yii\base\ModelEvent An event that is triggered before updating a record. You may set yii\base\ModelEvent::$isValid to be false to stop the update.

db\ColumnSchemaBuilder buildDefaultString()

buildDefaultString() protected method Builds the default value specification for the column. protected string buildDefaultString ( )return string String with default value of column.