public function build($id = '', $class = '', $content = null, $title = 'Dialog Frame', $action = '', $background = true, $type = self::TYPE_OK_CANCEL, $fileUpload = false)
    {
        // Set popup properties
        $this->background($background);

        // Build window frame
        parent::build($id, $class, $title);
        $this->addClass('dialog-frame');

        // Build Form
        $this->form = new SimpleForm($this->getHTMLDocument(), $this->getFormFactory());
        $this->form->build($id = '', $action, $async = true, $fileUpload, $defaultButtons = false, $requiredNotes = true);
        $this->appendToBody($this->form);

        // Build Controls
        $this->buildControls($type);

        // Append any custom content
        $this->appendToBody($content);

        return $this;
    }
public function build($id = '', $class = '', $content = null, $title = 'Dialog Frame', $action = '', $background = true, $type = self::TYPE_OK_CANCEL, $fileUpload = false)
    {
        // Set popup properties
        $this->background($background);

        // Build window frame
        parent::build($id, $class, $title);
        $this->addClass('dialog-frame');

        // Build Form
        $this->form = new SimpleForm($this->getHTMLDocument(), $this->getFormFactory());
        $this->form->build($id = '', $action, $async = true, $fileUpload, $defaultButtons = false, $requiredNotes = true);
        $this->appendToBody($this->form);

        // Build Controls
        $this->buildControls($type);

        // Append any custom content
        $this->appendToBody($content);

        return $this;
    }
public function build ( $ id = '' , $ class = '' , $ content = null , $ title = 'Dialog Frame' , $ action = '' , $ background = true , $ type = self :: TYPE_OK_CANCEL , $ fileUpload = false ) { // Set popup properties $ this -> background ( $ background ) ; // Build window frame parent :: build ( $ id , $ class , $ title ) ; $ this -> addClass ( 'dialog-frame' ) ; // Build Form $ this -> form = new SimpleForm ( $ this -> getHTMLDocument ( ) , $ this -> getFormFactory ( ) ) ; $ this -> form -> build ( $ id = '' , $ action , $ async = true , $ fileUpload , $ defaultButtons = false , $ requiredNotes = true ) ; $ this -> appendToBody ( $ this -> form ) ; // Build Controls $ this -> buildControls ( $ type ) ; // Append any custom content $ this -> appendToBody ( $ content ) ; return $ this ; }
Builds the frame along with the form action.

@param string           $id
@param string           $class
@param DOMElement|mixed $content
@param mixed            $title      The dialog's title.
@param string           $action     The form action to post the dialog to.
Leave empty in order to engage with module or application protocol.
@param bool             $background Defines whether the dialog popup will have a background.
@param string           $type       The dialog buttons type.
Use class constants to define an OK/Cancel or Yes/No type.
@param bool             $fileUpload Enable the dialog form for file upload.

@return $this
@throws Exception
@throws InvalidArgumentException
Builds the frame along with the form action .