示例#1
0
 /**
  * Form constructor.
  */
 public function __construct($name = NULL, $parent = NULL)
 {
     $this->element = Html::el('form');
     $this->element->action = '';
     // RFC 1808 -> empty uri means 'this'
     $this->element->method = 'post';
     $this->monitor(__CLASS__);
     parent::__construct($parent, $name);
 }
示例#2
0
文件: Form.php 项目: romcok/treeview
 /**
  * Form constructor.
  * @param  string
  */
 public function __construct($name = NULL)
 {
     $this->element = Html::el('form');
     $this->element->action = '';
     // RFC 1808 -> empty uri means 'this'
     $this->element->method = self::POST;
     $this->monitor(__CLASS__);
     if ($name !== NULL) {
         $tracker = new HiddenField($name);
         $tracker->unmonitor(__CLASS__);
         $this[self::TRACKER_ID] = $tracker;
     }
     parent::__construct(NULL, $name);
 }
示例#3
0
 function __construct($name = NULL)
 {
     $this->element = Html::el('form');
     $this->element->action = '';
     $this->element->method = self::POST;
     $this->element->id = 'frm-' . $name;
     $this->monitor(__CLASS__);
     if ($name !== NULL) {
         $tracker = new HiddenField($name);
         $tracker->unmonitor(__CLASS__);
         $this[self::TRACKER_ID] = $tracker;
     }
     parent::__construct(NULL, $name);
 }