gii\generators\extension\Generator rules()

rules() public method Returns the validation rules for attributes. Validation rules are used by validate() to check if attribute values are valid. Child classes may override this method to declare different validation rules. Each rule is an array with the following structure: [ ['attribute1', 'attribute2'], 'validator type', 'on' => ['scenario1', 'scenario2'], //...other parameters... ] where attribute list: required, specifies the attributes array to be validated, for s

mongodb\Database selectCollection()

selectCollection() protected method Selects collection with given name. protected yii\mongodb\Collection selectCollection ( $name )$name string Collection name. return yii\mongodb\Collection Collection instance.

validators\StringValidator $min

$min public property Minimum length. If not set, it means no minimum length limit. See also $tooShort for the customized message for a too short string. public integer $min = null

helpers\BaseConsole confirm()

confirm() public static method Asks user to confirm by typing y or n. public static boolean confirm ( $message, $default = false )$message string To print out before waiting for user input $default boolean This value is returned if no selection is made. return boolean Whether user confirmed

captcha\Captcha $imageOptions

$imageOptions public property HTML attributes to be applied to the CAPTCHA image tag. See also yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered. public array $imageOptions = []

db\sqlite\QueryBuilder dropPrimaryKey()

dropPrimaryKey() public method Builds a SQL statement for removing a primary key constraint to an existing table. public string dropPrimaryKey ( $name, $table )$name string The name of the primary key constraint to be removed. $table string The table that the primary key constraint will be removed from. return string The SQL statement for removing a primary key constraint from an existing table. throws yii\base\NotSupportedException this is not supported by SQLite

db\cubrid\Schema $exceptionMap

$exceptionMap public property Map of DB errors and corresponding exceptions If left part is found in DB error message exception class from the right part is used. public array $exceptionMap = ['Operation would have caused one or more unique constraint violations' => 'yii\db\IntegrityException']

widgets\DetailView init()

init() public method Initializes the detail view. This method will initialize required property values. public void init ( )

redis\Cache getValues()

getValues() protected method Retrieves multiple values from cache with the specified keys. The default implementation calls getValue() multiple times to retrieve the cached values one by one. If the underlying cache storage supports multiget, this method should be overridden to exploit that feature. protected array getValues ( $keys )$keys array A list of keys identifying the cached values return array A list of cached values indexed by the keys

authclient\clients\Live initUserAttributes()

initUserAttributes() protected method Initializes authenticated user attributes. protected array initUserAttributes ( )return array Auth user attributes.