Swat/SwatForm.php
public function display()
    {
        if (!$this->visible) {
            return;
        }

        SwatWidget::display();

        $this->addHiddenField(self::PROCESS_FIELD, $this->id);

        $form_tag = $this->getFormTag();

        $form_tag->open();
        $this->displayChildren();
        $this->displayHiddenFields();
        $form_tag->close();

        if ($this->connection_close_uri != '') {
            $yui = new SwatYUI(array('event'));
            $this->html_head_entry_set->addEntrySet(
                $yui->getHtmlHeadEntrySet()
            );
        }

        Swat::displayInlineJavaScript($this->getInlineJavaScript());
    }
public function display()
    {
        if (!$this->visible) {
            return;
        }

        SwatWidget::display();

        $this->addHiddenField(self::PROCESS_FIELD, $this->id);

        $form_tag = $this->getFormTag();

        $form_tag->open();
        $this->displayChildren();
        $this->displayHiddenFields();
        $form_tag->close();

        if ($this->connection_close_uri != '') {
            $yui = new SwatYUI(array('event'));
            $this->html_head_entry_set->addEntrySet(
                $yui->getHtmlHeadEntrySet()
            );
        }

        Swat::displayInlineJavaScript($this->getInlineJavaScript());
    }
public function display ( ) { if ( ! $ this -> visible ) { return ; } SwatWidget :: display ( ) ; $ this -> addHiddenField ( self :: PROCESS_FIELD , $ this -> id ) ; $ form_tag = $ this -> getFormTag ( ) ; $ form_tag -> open ( ) ; $ this -> displayChildren ( ) ; $ this -> displayHiddenFields ( ) ; $ form_tag -> close ( ) ; if ( $ this -> connection_close_uri != '' ) { $ yui = new SwatYUI ( array ( 'event' ) ) ; $ this -> html_head_entry_set -> addEntrySet ( $ yui -> getHtmlHeadEntrySet ( ) ) ; } Swat :: displayInlineJavaScript ( $ this -> getInlineJavaScript ( ) ) ; }
Displays this form

Outputs the HTML form tag and calls the display() method on each child
widget of this form. Then, after all the child widgets are displayed,
displays all hidden fields.

This method also adds a hidden field called 'process' that is given
the unique identifier of this form as a value.
Displays this form