示例#1
0
文件: Form.php 项目: pckg/htmlbuilder
 /**
  *
  */
 public function __construct()
 {
     parent::__construct();
     $this->setAttribute('action', router()->getUri());
     $this->setID('form' . array_reverse(explode('\\', get_class($this)))[0]);
     $this->setName('form' . array_reverse(explode('\\', get_class($this)))[0]);
     $this->setMethod('post');
     $this->setMultipart();
     foreach ($this->handlerFactory->create([Step::class]) as $handler) {
         $this->addHandler($handler);
     }
     $this->formFactory = new FormFactory();
     $this->addFieldset();
 }
示例#2
0
 /**
  *
  */
 public function __construct()
 {
     parent::__construct();
     $this->addHandler($this->handlerFactory->create('Basic', 'Query', 'Step'));
 }
示例#3
0
文件: Div.php 项目: pckg/htmlbuilder
 /**
  *
  */
 public function __construct()
 {
     parent::__construct();
 }