Пример #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);
 }