예제 #1
0
 public function Children()
 {
     if ($this->_children === null) {
         $datasets = new Default_Model_Datasets();
         $datasets->filter->parentid->numequals($this->getID());
         $datasets->refresh();
         $this->_children = $datasets->items;
     }
     return $this->_children;
 }
예제 #2
0
 public function getDataset()
 {
     if ($this->_dataset === null) {
         $Datasets = new Default_Model_Datasets();
         $Datasets->filter->id->equals($this->getDatasetID());
         if ($Datasets->count() > 0) {
             $this->_dataset = $Datasets->items[0];
         }
     }
     return $this->_dataset;
 }
예제 #3
0
 public function getParent()
 {
     if ($this->_parent === null) {
         $datasets = new Default_Model_Datasets();
         $datasets->filter->id->numequals($this->getParentID());
         if ($datasets->count() > 0) {
             $this->_parent = $datasets->items[0];
         }
     }
     return $this->_parent;
 }