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']; } }
public function register() { Widget::doRegister($this); }