Exemplo n.º 1
0
 /**
  * Конструктор
  * @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);
     }
 }
Exemplo n.º 2
0
 /**
  * Конструктор
  *
  * @param  string ID номер  компонента
  * @param  TreeNode Корневой узел
  */
 public function __construct($id)
 {
     HtmlComponent::__construct($id);
     //$this->addRoot($root);
     //$root->setActive(true);
     //$root->setSelected(true);
 }
Exemplo n.º 3
0
 /**
  * Конструктор
  * @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);
 }
Exemplo n.º 4
0
 /**
  *  Конструктор
  * @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;
 }
Exemplo n.º 5
0
 /**
  * @see  HtmlComponent
  */
 public function __construct($id)
 {
     parent::__construct($id);
 }
Exemplo n.º 6
0
 public function __construct($id)
 {
     parent::__construct($id);
     $this->setAttribute("href", "javascript:void(0);");
 }
Exemplo n.º 7
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();
 }
Exemplo n.º 8
0
 /**
  * Конструктор
  * @param  string ID компонента
  * @param  string Разделитель  между ссылками
  */
 public function __construct($id, $delimiter = ' ')
 {
     parent::__construct($id);
     $this->delimiter = $delimiter;
 }
Exemplo n.º 9
0
 /**
  * Конструктор
  * @param string ID
  * @param  DataList Объект  использующий  paginator
  */
 public function __construct($id, \Zippy\Html\DataList\AbstractList $datalist)
 {
     parent::__construct($id);
     $this->datalist = $datalist;
 }