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

        SwatWidget::display();

        $control_div = $this->getControlDivTag();
        $span = $this->getSpanTag();
        $input = $this->getInputTag();
        $container_div = $this->getContainerDivTag();
        $animate_div = $this->getAnimateDivTag();
        $padding_div = $this->getPaddingDivTag();

        $control_div->open();

        $span->display();
        $input->display();

        $container_div->open();
        $animate_div->open();
        $padding_div->open();
        $this->displayChildren();
        $padding_div->close();
        $animate_div->close();
        $container_div->close();

        Swat::displayInlineJavaScript($this->getInlineJavaScript());

        $control_div->close();
    }
public function display()
    {
        if (!$this->visible) {
            return;
        }

        SwatWidget::display();

        $control_div = $this->getControlDivTag();
        $span = $this->getSpanTag();
        $input = $this->getInputTag();
        $container_div = $this->getContainerDivTag();
        $animate_div = $this->getAnimateDivTag();
        $padding_div = $this->getPaddingDivTag();

        $control_div->open();

        $span->display();
        $input->display();

        $container_div->open();
        $animate_div->open();
        $padding_div->open();
        $this->displayChildren();
        $padding_div->close();
        $animate_div->close();
        $container_div->close();

        Swat::displayInlineJavaScript($this->getInlineJavaScript());

        $control_div->close();
    }
public function display ( ) { if ( ! $ this -> visible ) { return ; } SwatWidget :: display ( ) ; $ control_div = $ this -> getControlDivTag ( ) ; $ span = $ this -> getSpanTag ( ) ; $ input = $ this -> getInputTag ( ) ; $ container_div = $ this -> getContainerDivTag ( ) ; $ animate_div = $ this -> getAnimateDivTag ( ) ; $ padding_div = $ this -> getPaddingDivTag ( ) ; $ control_div -> open ( ) ; $ span -> display ( ) ; $ input -> display ( ) ; $ container_div -> open ( ) ; $ animate_div -> open ( ) ; $ padding_div -> open ( ) ; $ this -> displayChildren ( ) ; $ padding_div -> close ( ) ; $ animate_div -> close ( ) ; $ container_div -> close ( ) ; Swat :: displayInlineJavaScript ( $ this -> getInlineJavaScript ( ) ) ; $ control_div -> close ( ) ; }
Displays this disclosure container

Creates appropriate divs and outputs closed or opened based on the
initial state.

The disclosure is always displayed as opened in case the user has
JavaScript turned off.
Displays this disclosure container