示例#1
0
 /**
  * Save current form reference and sections list, and initialize the cache
  *
  * @param array $params Widget params OPTIONAL
  */
 public function __construct(array $params = array())
 {
     if (isset($params[self::PARAM_NAME])) {
         $this->name = $params[self::PARAM_NAME];
     }
     parent::__construct($params);
 }
示例#2
0
 /**
  * __construct
  *
  * @param array  $params          Widget params OPTIONAL
  * @param string $contentTemplate Central area template OPTIONAL
  *
  * @return void
  */
 public function __construct(array $params = array(), $contentTemplate = null)
 {
     parent::__construct($params);
     $this->template = $contentTemplate;
 }