public function previousPage(HTML_QuickForm2_Controller_Page $reference)
    {
        $previous = null;
        foreach ($this->pages as $page) {
            if ($page === $reference) {
                return $previous;
            }
            $previous = $page;
        }
        return null;
    }
public function previousPage(HTML_QuickForm2_Controller_Page $reference)
    {
        $previous = null;
        foreach ($this->pages as $page) {
            if ($page === $reference) {
                return $previous;
            }
            $previous = $page;
        }
        return null;
    }
public function previousPage ( HTML_QuickForm2_Controller_Page $ reference ) { $ previous = null ; foreach ( $ this -> pages as $ page ) { if ( $ page === $ reference ) { return $ previous ; } $ previous = $ page ; } return null ; }
Returns the page preceding the given one

@param    HTML_QuickForm2_Controller_Page
@return   HTML_QuickForm2_Controller_Page|null
Returns the page preceding the given one