public function getFirstInvalidPage()
    {
        foreach ($this->pages as $id => $page) {
            if (!$this->getSessionContainer()->getValidationStatus($id)) {
                return $page;
            }
        }
        return null;
    }
public function getFirstInvalidPage()
    {
        foreach ($this->pages as $id => $page) {
            if (!$this->getSessionContainer()->getValidationStatus($id)) {
                return $page;
            }
        }
        return null;
    }
public function getFirstInvalidPage ( ) { foreach ( $ this -> pages as $ id => $ page ) { if ( ! $ this -> getSessionContainer ( ) -> getValidationStatus ( $ id ) ) { return $ page ; } } return null ; }
Returns the first page that failed validation

@return   HTML_QuickForm2_Controller_Page|null
Returns the first page that failed validation