caching\ApcCache deleteValue()

deleteValue() protected method Deletes a value with the specified key from cache This is the implementation of the method declared in the parent class. protected boolean deleteValue ( $key )$key string The key of the value to be deleted return boolean If no error happens during deletion

caching\ApcCache $useApcu

$useApcu public property (available since version 2.0.7) Whether to use apcu or apc as the underlying caching extension. If true, apcu will be used. If false, apc will be used. Defaults to false. public boolean $useApcu = false

caching\ApcCache addValues()

addValues() protected method Adds multiple key-value pairs to cache. protected array addValues ( $data, $duration )$data array Array where key corresponds to cache key while value is the value stored $duration integer The number of seconds in which the cached values will expire. 0 means never expire. return array Array of failed keys

caching\ApcCache addValue()

addValue() protected method Stores a value identified by a key into cache if the cache does not contain this key. This is the implementation of the method declared in the parent class. protected boolean addValue ( $key, $value, $duration )$key string The key identifying the value to be cached $value mixed The value to be cached. Most often it's a string. If you have disabled $serializer, it could be something else. $duration integer The number of seconds in which the cached value wil

Caching

Caching is a cheap and effective way to improve the performance of a Web application. By storing relatively static data in cache and serving it from cache when requested, the application saves the time that would be required to generate the data from scratch every time. Caching can occur at different levels and places in a Web application. On the server-side, at the lower level, cache may be used to store basic data, such as a list of most recent article information fetched from database; and a

bootstrap\Widget $options

$options public property The HTML attributes for the widget container tag. See also yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered. public array $options = []

bootstrap\ToggleButtonGroup run()

run() public method Executes the widget. public string run ( )return string The result of widget execution to be outputted.

bootstrap\ToggleButtonGroup init()

init() public method Initializes the widget. This method will register the bootstrap asset bundle. If you override this method, make sure you call the parent implementation first. public void init ( )

bootstrap\ToggleButtonGroup $type

$type public property Input type, can be: 'checkbox' 'radio' public string $type = null

bootstrap\ToggleButtonGroup renderItem()

renderItem() public method Default callback for checkbox/radio list item rendering. See also: yii\bootstrap\Html::checkbox() yii\bootstrap\Html::radio() public string renderItem ( $index, $label, $name, $checked, $value )$index integer Item index. $label string Item label. $name string Input name. $checked boolean Whether value is checked or not. $value string Input value. return string Generated HTML.