Exemple #1
0
 /**
  * Begins a widget.
  * This method creates an instance of the calling class setting the MODE_BEGIN mode. Any item between 
  * [[begin()]] and [[end()]] which match the filter attribute, will be selectable. 
  * It will apply the configuration
  * to the created instance. A matching [[end()]] call should be called later.
  * As some widgets may use output buffering, the [[end()]] call should be made in the same view
  * to avoid breaking the nesting of output buffers.
  * @param array $config name-value pairs that will be used to initialize the object properties
  * @return static the newly created widget instance
  * @see end()
  */
 public static function begin($config = [])
 {
     $config['mode'] = self::MODE_BEGIN;
     parent::begin($config);
 }