di\Container get()

get() public method Returns an instance of the requested class. You may provide constructor parameters ($params) and object configurations ($config) that will be used during the creation of the instance. If the class implements yii\base\Configurable, the $config parameter will be passed as the last parameter to the class constructor; Otherwise, the configuration will be applied after the object is instantiated. Note that if the class is declared to be singleton by calling setSingleton(), th

log\FileTarget $rotateByCopy

$rotateByCopy public property Whether to rotate log files by copy and truncate in contrast to rotation by renaming files. Defaults to true to be more compatible with log tailers and is windows systems which do not play well with rename on open files. Rotation by renaming however is a bit faster. The problem with windows systems where the rename() function does not work with files that are opened by some process is described in a comment by Martin Pelletier in the PHP documentation. By setti

web\Link serialize()

serialize() public static method Serializes a list of links into proper array format. public static array serialize ( array $links )$links array The links to be serialized return array The proper array representation of the links.

behaviors\AttributeTypecastBehavior events()

events() public method Declares event handlers for the $owner's events. Child classes may override this method to declare what PHP callbacks should be attached to the events of the $owner component. The callbacks will be attached to the $owner's events when the behavior is attached to the owner; and they will be detached from the events when the behavior is detached from the component. The callbacks can be any of the following: method in this behavior: 'handleClick', equivalent to [$this, '

db\QueryInterface one()

one() public abstract method Executes the query and returns a single row of result. public abstract array|boolean one ( $db = null )$db yii\db\Connection The database connection used to execute the query. If this parameter is not given, the db application component will be used. return array|boolean The first row (in terms of an array) of the query result. False is returned if the query results in nothing.

caching\Cache $keyPrefix

$keyPrefix public property A string prefixed to every cache key so that it is unique globally in the whole cache storage. It is recommended that you set a unique cache key prefix for each application if the same cache storage is being used by different applications. To ensure interoperability, only alphanumeric characters should be used. public string $keyPrefix = null

grid\GridView $beforeRow

$beforeRow public property An anonymous function that is called once BEFORE rendering each data model. It should have the similar signature as $rowOptions. The return result of the function will be rendered directly. public Closure $beforeRow = null

filters\AccessRule $controllers

$controllers public property List of the controller IDs that this rule applies to. Each controller ID is prefixed with the module ID (if any). The comparison is case-sensitive. If not set or empty, it means this rule applies to all controllers. public array $controllers = null

gii\Generator defaultTemplate()

defaultTemplate() public method Returns the root path to the default code template files. The default implementation will return the "templates" subdirectory of the directory containing the generator class file. public string defaultTemplate ( )return string The root path to the default code template files.

web\CookieCollection getIterator()

getIterator() public method Returns an iterator for traversing the cookies in the collection. This method is required by the SPL interface IteratorAggregate. It will be implicitly called when you use foreach to traverse the collection. public ArrayIterator getIterator ( )return ArrayIterator An iterator for traversing the cookies in the collection.