mongodb\gii\model\Generator generateRules()

generateRules() public method Generates validation rules for the specified collection. public array generateRules ( $attributes )$attributes array The list of attributes return array The generated validation rules

caching\DbDependency $db

$db public property The application component ID of the DB connection. public string $db = 'db'

rbac\DbManager removeAllAssignments()

removeAllAssignments() public method Removes all role assignments. public void removeAllAssignments ( )

web\User can()

can() public method Checks if the user can perform the operation as specified by the given permission. Note that you must configure "authManager" application component in order to use this method. Otherwise it will always return false. public boolean can ( $permissionName, $params = [], $allowCaching = true )$permissionName string The name of the permission (e.g. "edit post") that needs access check. $params array Name-value pairs that would be passed to the rules associated with the r

Using template engines

By default, Yii uses PHP as its template language, but you can configure Yii to support other rendering engines, such as Twig or Smarty available as extensions. The view component is responsible for rendering views. You can add a custom template engine by reconfiguring this component's behavior: [ 'components' => [ 'view' => [ 'class' => 'yii\web\View', 'renderers' => [ 'tpl' => [ 'class' => 'yii\smarty\Vi

sphinx\Query $snippetCallback

$snippetCallback public property PHP callback, which should be used to fetch source data for the snippets. Such callback will receive array of query result rows as an argument and must return the array of snippet source strings in the order, which match one of incoming rows. For example: $query = new Query(); $query->from('idx_item') ->match('pencil') ->snippetCallback(function ($rows) { $result = []; foreach ($rows as $row) { $result[] = file_ge

base\ViewEvent $isValid

$isValid public property Whether to continue rendering the view file. Event handlers of yii\base\View::EVENT_BEFORE_RENDER may set this property to decide whether to continue rendering the current view file. public boolean $isValid = true

grid\CheckboxColumn $cssClass

$cssClass public property (available since version 2.0.9) The css class that will be used to find the checkboxes. public string $cssClass = null

helpers\ReplaceArrayValue $value

$value public property Value used as replacement. public mixed $value = null

bootstrap\Tabs hasActiveTab()

hasActiveTab() protected method protected boolean hasActiveTab ( )return boolean If there's active tab defined