Пример #1
0
 public function getsfSimpleCMSPageRelatedByTreeParent($con = null)
 {
     if ($this->asfSimpleCMSPageRelatedByTreeParent === null && $this->tree_parent !== null) {
         include_once 'plugins/sfSimpleCMSPlugin/lib/model/om/BasesfSimpleCMSPagePeer.php';
         $this->asfSimpleCMSPageRelatedByTreeParent = sfSimpleCMSPagePeer::retrieveByPK($this->tree_parent, $con);
     }
     return $this->asfSimpleCMSPageRelatedByTreeParent;
 }
Пример #2
0
 public function getsfSimpleCMSPage($con = null)
 {
     if ($this->asfSimpleCMSPage === null && $this->page_id !== null) {
         include_once 'plugins/sfSimpleCMSPlugin/lib/model/om/BasesfSimpleCMSPagePeer.php';
         $this->asfSimpleCMSPage = sfSimpleCMSPagePeer::retrieveByPK($this->page_id, $con);
     }
     return $this->asfSimpleCMSPage;
 }