16 private static $widgetsList = array();
17 private static $indices = array(
18 'widgetClassName' => array()
20 private static $called =
false;
27 return Common::EVENT_WIDGET_COLLECT;
36 return $this->isCalled() ? self::$widgetsList :
false;
44 return $this->isCalled() ? self::$indices :
false;
51 public function call()
57 foreach ($widgets as $key => $widget)
59 self::$widgetsList[$key] = $widget;
60 self::$indices[
'widgetClassName'][$widget::getClassName()][] = $key;
70 private function isCalled()
74 $this->errors[] =
new Error(
'invoke call method manager before get some parameters');