public function parentStack() {
        $p=$this->owner;
        
        while($p) {
            $stack[]=$p;
            if($p->FolderID && $p->FolderID>0) {
                $folder=$p->Folder();
                if(!empty($folder) && $folder!==false && $folder->ID!=0) {
                    $p=$folder;
                }
            }else {
                $p=$p->LanguageID ? $p->Language() : null;
            }
        }
        
        return $stack;
    }
public function parentStack() {
        $p=$this->owner;
        
        while($p) {
            $stack[]=$p;
            if($p->FolderID && $p->FolderID>0) {
                $folder=$p->Folder();
                if(!empty($folder) && $folder!==false && $folder->ID!=0) {
                    $p=$folder;
                }
            }else {
                $p=$p->LanguageID ? $p->Language() : null;
            }
        }
        
        return $stack;
    }
public function parentStack ( ) { $ p = $ this -> owner ; while ( $ p ) { $ stack [ ] = $ p ; if ( $ p -> FolderID && $ p -> FolderID > 0 ) { $ folder = $ p -> Folder ( ) ; if ( ! empty ( $ folder ) && $ folder !== false && $ folder -> ID != 0 ) { $ p = $ folder ; } } else { $ p = $ p -> LanguageID ? $ p -> Language ( ) : null ; } } return $ stack ; }
Return an array of this page and its ancestors, ordered item -> root.
@return array
Return an array of this page and its ancestors ordered item - > root .