Beispiel #1
0
 public function getPage()
 {
     if (is_array($this->prefetched)) {
         if (in_array('page', $this->prefetched)) {
             if (in_array('page', $this->prefetchedObjects)) {
                 return $this->prefetchedObjects['page'];
             } else {
                 $obj = new DB_Page($this->sourceRow);
                 $obj->setNew(false);
                 $this->prefetchedObjects['page'] = $obj;
                 return $obj;
             }
         }
     }
     return DB_PagePeer::instance()->selectByPrimaryKey($this->getPageId());
 }