gii\generators\form\Generator generate()

generate() public method Generates the code based on the current user input and the specified code template files. This is the main method that child classes should implement. Please refer to yii\gii\generators\controller\Generator::generate() as an example on how to implement this method. public yii\gii\CodeFile[] generate ( )return yii\gii\CodeFile[] A list of code files to be created.

gii\generators\controller\Generator $actions

$actions public property List of action IDs separated by commas or spaces public string $actions = 'index'

base\ErrorException getName()

getName() public method public string getName ( )return string The user-friendly name of this exception

db\BaseActiveRecord updateAllCounters()

updateAllCounters() public static method Updates the whole table using the provided counter changes and conditions. For example, to increment all customers' age by 1, Customer::updateAllCounters(['age' => 1]); public static integer updateAllCounters ( $counters, $condition = '' )$counters array The counters to be updated (attribute name => increment value). Use negative values if you want to decrement the counters. $condition string|array The conditions that will be put in the

console\Controller $color

$color public property Whether to enable ANSI color in the output. If not set, ANSI color will only be enabled for terminals that support it. public boolean $color = null

caching\Cache getValue()

getValue() protected abstract method Retrieves a value from cache with a specified key. This method should be implemented by child classes to retrieve the data from specific cache storage. protected abstract mixed|false getValue ( $key )$key string A unique key identifying the cached value return mixed|false The value stored in cache, false if the value is not in the cache or expired. Most often value is a string. If you have disabled $serializer, it could be something else.

db\mysql\Schema getCreateTableSql()

getCreateTableSql() protected method Gets the CREATE TABLE sql string. protected string getCreateTableSql ( $table )$table yii\db\TableSchema The table metadata return string $sql the result of 'SHOW CREATE TABLE'

authclient\clients\GoogleOAuth defaultTitle()

defaultTitle() protected method Generates service title. protected string defaultTitle ( )return string Service title.

mail\MailerInterface compose()

compose() public abstract method Creates a new message instance and optionally composes its body content via view rendering. public abstract yii\mail\MessageInterface compose ( $view = null, array $params = [] )$view string|array|null The view to be used for rendering the message body. This can be: a string, which represents the view name or path alias for rendering the HTML body of the email. In this case, the text body will be generated by applying strip_tags() to the HTML body. an a

widgets\FragmentCache $cache

$cache public property The cache object or the application component ID of the cache object. After the FragmentCache object is created, if you want to change this property, you should only assign it with a cache object. Starting from version 2.0.2, this can also be a configuration array for creating the object. public yii\caching\Cache|array|string $cache = 'cache'