/** * * @access public * @param $column - Which field to get. * @return mixed */ public function __get($column) { switch ($column) { case 'parent': return $this->parent(); case 'parents': return $this->parents(); case 'children': return $this->children(); case 'first_child': return $this->children(FALSE, 'ASC', 1); case 'last_child': return $this->children(FALSE, 'DESC', 1); case 'siblings': return $this->siblings(); case 'root': return $this->root(); case 'leaves': return $this->leaves(); case 'descendants': return $this->descendants(); /*case 'left_column': return $this->meta()->left_column; case 'right_column': return $this->meta()->right_column; case 'level_column': return $this->meta()->level_column; case 'scope_column': return $this->meta()->scope_column; */ /*case 'left_column': return $this->meta()->left_column; case 'right_column': return $this->meta()->right_column; case 'level_column': return $this->meta()->level_column; case 'scope_column': return $this->meta()->scope_column; */ case 'db': return $this->meta()->db(); case 'table': return $this->meta()->table(); default: return parent::__get($column); } }