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; }
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; }
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; }