Ejemplo n.º 1
0
 public function get_skins(Widget_Base $widget)
 {
     $widget_name = $widget->get_name();
     if (!isset($this->_skins[$widget_name])) {
         return false;
     }
     return $this->_skins[$widget_name];
 }
Ejemplo n.º 2
0
 public function register_widget_type(Widget_Base $widget)
 {
     if (is_null($this->_widget_types)) {
         $this->_init_widgets();
     }
     $this->_widget_types[$widget->get_name()] = $widget;
     return true;
 }