Ejemplo n.º 1
0
 public function getRootOfBranch()
 {
     if (!$this->_root) {
         $this->_root = $this->level == 0 ? $this : iterFirst($this->_mapper->getList('ancestor_id')->filter('descendent_id = ?', $this->parent_id)->sort('level', 'DESC'));
     }
     return $this->_root;
 }
Ejemplo n.º 2
0
 /**
  *	Retrievs list of tickets. See RM_Ticket_Mapper::getList() for details.
  *	DON'T FORGET TO FILTER (level>0) TO REMOVE DUPLICATES
  *
  *	@return 	RM_Store_iRequset<RM_Ticket_Object>
  */
 public function getDescendentList()
 {
     return $this->_mapper->getList('descendent_id');
 }