function TopMost()
    {
        $sql = Access::SqlBuilder();
        $tbl = PageContent::Schema()->Table();
        $where = $sql->Equals($tbl->Field('Page'), $sql->Value($this->page->GetID()))->
                And_($sql->Equals($tbl->Field('Area'), $sql->Value($this->area->GetID())))->
                And_($sql->IsNull($tbl->Field('Parent')))
                ->And_($sql->IsNull($tbl->Field('Previous')));
        
        return PageContent::Schema()->First($where);
    }
function TopMost()
    {
        $sql = Access::SqlBuilder();
        $tbl = PageContent::Schema()->Table();
        $where = $sql->Equals($tbl->Field('Page'), $sql->Value($this->page->GetID()))->
                And_($sql->Equals($tbl->Field('Area'), $sql->Value($this->area->GetID())))->
                And_($sql->IsNull($tbl->Field('Parent')))
                ->And_($sql->IsNull($tbl->Field('Previous')));
        
        return PageContent::Schema()->First($where);
    }
function TopMost ( ) { $ sql = Access :: SqlBuilder ( ) ; $ tbl = PageContent :: Schema ( ) -> Table ( ) ; $ where = $ sql -> Equals ( $ tbl -> Field ( 'Page' ) , $ sql -> Value ( $ this -> page -> GetID ( ) ) ) -> And_ ( $ sql -> Equals ( $ tbl -> Field ( 'Area' ) , $ sql -> Value ( $ this -> area -> GetID ( ) ) ) ) -> And_ ( $ sql -> IsNull ( $ tbl -> Field ( 'Parent' ) ) ) -> And_ ( $ sql -> IsNull ( $ tbl -> Field ( 'Previous' ) ) ) ; return PageContent :: Schema ( ) -> First ( $ where ) ; }
Returns the root and first content element in a page and area
@return PageContent Returns the first and root content
Returns the root and first content element in a page and area