/** * Конструктор * @param string ID компонента * @param EventReceiver Объект с методом обработки события * @param string Имя метода-обработчика */ public function __construct($id, EventReceiver $receiver = null, $handler = null) { parent::__construct($id); if (is_object($receiver) && strlen($handler) > 0) { $this->setClickHandler($receiver, $handler); } }
/** * Конструктор * * @param string ID номер компонента * @param TreeNode Корневой узел */ public function __construct($id) { HtmlComponent::__construct($id); //$this->addRoot($root); //$root->setActive(true); //$root->setSelected(true); }
/** * Конструктор * @param string ID елемента * @param string Текстовое содержание */ public function __construct($id, $text = null, $html = false) { parent::__construct($id); $this->value = $text; $this->html = $html; // $this->setOption(OPTION_INSERT_HTML); }
/** * Конструктор * @param DataItem Елемент данных отображаемый строкой таблицы * @param mixed Номер строки */ public function __construct($id, DataItem $dataitem, $number, $allnumber = "") { HtmlComponent::__construct($id . "_" . $number); $this->dataitem = $dataitem; $this->number = $number; $this->allnumber = $allnumber; }
/** * @see HtmlComponent */ public function __construct($id) { parent::__construct($id); }
public function __construct($id) { parent::__construct($id); $this->setAttribute("href", "javascript:void(0);"); }
/** * Конструктор * * @param mixed $id * @param mixed $refresh если true генерится код для обновления через AJAX * @return Captcha */ public function __construct($id, $refresh = true) { parent::__construct($id); $this->refresh = $refresh; $this->Refresh(); }
/** * Конструктор * @param string ID компонента * @param string Разделитель между ссылками */ public function __construct($id, $delimiter = ' ') { parent::__construct($id); $this->delimiter = $delimiter; }
/** * Конструктор * @param string ID * @param DataList Объект использующий paginator */ public function __construct($id, \Zippy\Html\DataList\AbstractList $datalist) { parent::__construct($id); $this->datalist = $datalist; }