public function __construct($pIconPath, $pLabel, $pParams) { if (array_key_exists('placement', $pParams)) { $placement = $pParams['placement']; unset($pParams['placement']); } else { $placement = Zupal_Control_Icon::PLACEMENT_VERTICAL; } parent::load($pParams); $icon = new Zupal_Control_Icon($pIconPath, $pLabel, $placement); $this->set_title($pLabel); $this->set_icon($icon); }
public function __construct($pLabel, $pParams) { parent::load($pParams); $this->set_label($pLabel); }