public function buildForm($id = '', $action = '', $async = false, $fileUpload = false, $attributes = [])
    {
        // Create form control
        $form = new Form($this->getHTMLDocument(), $this, $attributes);
        $form->build($id, $action, $async, $fileUpload);

        return $form;
    }
public function buildForm($id = '', $action = '', $async = false, $fileUpload = false, $attributes = [])
    {
        // Create form control
        $form = new Form($this->getHTMLDocument(), $this, $attributes);
        $form->build($id, $action, $async, $fileUpload);

        return $form;
    }
public function buildForm ( $ id = '' , $ action = '' , $ async = false , $ fileUpload = false , $ attributes = [ ] ) { // Create form control $ form = new Form ( $ this -> getHTMLDocument ( ) , $ this , $ attributes ) ; $ form -> build ( $ id , $ action , $ async , $ fileUpload ) ; return $ form ; }
Build a form control.

@param string $id
@param string $action
@param bool   $async
@param bool   $fileUpload
@param array  $attributes

@return Form
@throws Exception
Build a form control .