Exemple #1
0
 public function getParentName()
 {
     $parent = CatSubjectPeer::retrieveByPK($this->getParent());
     if ($parent != null) {
         return $parent->getName();
     } else {
         return '-';
     }
 }
Exemple #2
0
 public function getCatSubject($con = null)
 {
     include_once 'lib/model/om/BaseCatSubjectPeer.php';
     if ($this->aCatSubject === null && $this->cat_subject_id !== null) {
         $this->aCatSubject = CatSubjectPeer::retrieveByPK($this->cat_subject_id, $con);
     }
     return $this->aCatSubject;
 }
Exemple #3
0
 public function getCatSubjectRelatedByParent($con = null)
 {
     include_once 'lib/model/om/BaseCatSubjectPeer.php';
     if ($this->aCatSubjectRelatedByParent === null && $this->parent !== null) {
         $this->aCatSubjectRelatedByParent = CatSubjectPeer::retrieveByPK($this->parent, $con);
     }
     return $this->aCatSubjectRelatedByParent;
 }