/** * @param string $text Label * @param string $icon Valid <uiControl::Icon> */ function __initialize($text, $icon = false) { parent::__initialize("button"); if ($icon) { $this->_icon = self::Icon($icon); } $this->type = "button"; if ($text) { $this->content($text); } }
/** * @param array $options See http://api.jqueryui.com/autocomplete/ */ function __initialize($options = array()) { parent::__initialize("input"); $this->type = "text"; $this->Options = $options; }
/** * @param string $title Title for header section * @param options $options */ function __initialize($title = "TXT_UNKNOWN", $options = array()) { parent::__initialize("div"); $this->Options = $options; $this->title = $title; }