示例#1
0
 protected function __init()
 {
     parent::__init();
     if (!empty($this->localizedData)) {
         $this->name = empty($this->localizedData['name']) ? '' : $this->localizedData['name'];
         $this->description = empty($this->localizedData['description']) ? '' : $this->localizedData['description'];
     }
 }
示例#2
0
 public function register()
 {
     Widget::doRegister($this);
 }