Example #1
0
 public function init()
 {
     if (!$this->id) {
         throw new InvalidConfigException('"id" is required');
     }
     parent::init();
 }
Example #2
0
 public function setDesktop(Desktop $desktop)
 {
     parent::setDesktop($desktop);
     foreach ($this->menus as $group) {
         foreach ($group as $menu) {
             $this->setDesktopRecursive($menu);
         }
     }
 }