static function Page404(Site $site)
    {
        $sql = Access::SqlBuilder();
        $tblPage = Page::Schema()->Table();
        $where = $sql->Equals($tblPage->Field('Type'), $sql->Value((string) PageType::NotFound()))
                ->And_($sql->Equals($tblPage->Field('Site'), $sql->Value($site->GetID())));

        return Page::Schema()->First($where);
    }
static function Page404(Site $site)
    {
        $sql = Access::SqlBuilder();
        $tblPage = Page::Schema()->Table();
        $where = $sql->Equals($tblPage->Field('Type'), $sql->Value((string) PageType::NotFound()))
                ->And_($sql->Equals($tblPage->Field('Site'), $sql->Value($site->GetID())));

        return Page::Schema()->First($where);
    }
static function Page404 ( Site $ site ) { $ sql = Access :: SqlBuilder ( ) ; $ tblPage = Page :: Schema ( ) -> Table ( ) ; $ where = $ sql -> Equals ( $ tblPage -> Field ( 'Type' ) , $ sql -> Value ( ( string ) PageType :: NotFound ( ) ) ) -> And_ ( $ sql -> Equals ( $ tblPage -> Field ( 'Site' ) , $ sql -> Value ( $ site -> GetID ( ) ) ) ) ; return Page :: Schema ( ) -> First ( $ where ) ; }
Finds the 404 page for a site
@param Site $site The site whise 404 page is searched for
@return Page The 404 page
Finds the 404 page for a site