exists($id)) { $this->_data = $osC_CategoryTree->getData($id); } } function getID() { return $this->_data['id']; } function getTitle() { return $this->_data['name']; } function getImage() { return $this->_data['image']; } function hasParent() { if ($this->_data['parent_id'] > 0) { return true; } return false; } function getParent() { return $this->_data['parent_id']; } function getPath() { global $osC_CategoryTree; return $osC_CategoryTree->buildBreadcrumb($this->_data['id']); } } ?>