exists($id) ) { $this->_data = $osC_CategoryTree->getData($id); } } /** * Return the ID of the assigned category * * @access public * @return integer */ public function getID() { return $this->_data['id']; } /** * Return the title of the assigned category * * @access public * @return string */ public function getTitle() { return $this->_data['name']; } /** * Return the image of the assigned category * * @access public * @return string */ public function getImage() { return $this->_data['image']; } /** * Check if the assigned category has a parent category * * @access public * @return boolean */ public function hasParent() { return ( $this->_data['parent_id'] > 0 ); } /** * Return the parent ID of the assigned category * * @access public * @return integer */ public function getParent() { return $this->_data['parent_id']; } /** * Return the breadcrumb path of the assigned category * * @access public * @return string */ public function getPath() { global $osC_CategoryTree; return $osC_CategoryTree->buildBreadcrumb($this->_data['id']); } /** * Return specific information from the assigned category * * @access public * @return mixed */ public function getData($keyword) { return $this->_data[$keyword]; } } ?>