SimpleForm::__construct PHP 메소드

__construct() 공개 메소드

Starts with no held controls/widgets.
public __construct ( SimpleTag $tag, SimplePage $page )
$tag SimpleTag Form tag to read.
$page SimplePage Holding page.
    public function __construct($tag, $page)
    {
        $this->action = $this->createAction($tag->getAttribute('action'), $page);
        $this->buttons = array();
        $this->checkboxes = array();
        $this->default_target = false;
        $this->encoding = $this->setEncodingClass($tag);
        $this->id = $tag->getAttribute('id');
        $this->images = array();
        $this->method = $tag->getAttribute('method');
        $this->radios = array();
        $this->widgets = array();
    }