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]; }
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; }