db\ActiveRecord tableName()

tableName() public static method Declares the name of the database table associated with this AR class. By default this method returns the class name as the table name by calling yii\helpers\Inflector::camel2id() with prefix yii\db\Connection::$tablePrefix. For example if yii\db\Connection::$tablePrefix is tbl_, Customer becomes tbl_customer, and OrderItem becomes tbl_order_item. You may override this method if the table is not named after this convention. public static string tableName (

authclient\Collection setClients()

setClients() public method public void setClients ( array $clients )$clients array List of auth clients

mongodb\rbac\MongoDbManager removeRule()

removeRule() protected method Removes a rule from the RBAC system. protected boolean removeRule ( $rule )$rule yii\rbac\Rule The rule to remove return boolean Whether the rule is successfully removed throws Exception if data validation or saving fails (such as the name of the rule is not unique)

base\Model validate()

validate() public method Performs the data validation. This method executes the validation rules applicable to the current $scenario. The following criteria are used to determine whether a rule is currently applicable: the rule must be associated with the attributes relevant to the current scenario; the rules must be effective for the current scenario. This method will call beforeValidate() and afterValidate() before and after the actual validation, respectively. If beforeValidate() returns

grid\ActionColumn $visibleButtons

$visibleButtons public property (available since version 2.0.7) Visibility conditions for each button. The array keys are the button names (without curly brackets), and the values are the boolean true/false or the anonymous function. When the button name is not specified in this array it will be shown by default. The callbacks must use the following signature: function ($model, $key, $index) { return $model->status === 'editable'; } Or you can pass a boolean value: [ 'update' =&

redis\Connection open()

open() public method Establishes a DB connection. It does nothing if a DB connection has already been established. public void open ( )throws yii\db\Exception if connection fails

db\Command dropForeignKey()

dropForeignKey() public method Creates a SQL command for dropping a foreign key constraint. public $this dropForeignKey ( $name, $table )$name string The name of the foreign key constraint to be dropped. The name will be properly quoted by the method. $table string The table whose foreign is to be dropped. The name will be properly quoted by the method. return $this The command object itself

debug\panels\TimelinePanel save()

save() public method Saves data to be later used in debugger detail view. This method is called on every page where debugger is enabled. public mixed save ( )return mixed Data to be saved

Data Providers

Active Data Provider SQL Data Provider Array Data Provider Working with Data Keys Creating Custom Data Provider In the Pagination and Sorting sections, we have described how to allow end users to choose a particular page of data to display and sort them by some columns. Because the task of paginating and sorting data is very common, Yii provides a set of data provider classes to encapsulate it. A data provider is a class implementing yii\data\DataProviderInterface. It mainly supports retrievin

console\controllers\MessageController $translator

$translator public property The name of the function for translating messages. Defaults to 'Yii::t'. This is used as a mark to find the messages to be translated. You may use a string for single function name or an array for multiple function names. public string $translator = 'Yii::t'