00001 <?php 00002 00017 // $Id: HelpToc.inc.php,v 1.9 2008/07/01 01:16:09 asmecher Exp $ 00018 00019 00020 class HelpToc extends DataObject { 00021 00023 var $topics; 00024 00026 var $breadcrumbs; 00027 00031 function HelpToc() { 00032 parent::DataObject(); 00033 $this->topics = array(); 00034 $this->breadcrumbs = array(); 00035 } 00036 00037 // 00038 // Get/set methods 00039 // 00040 00045 function getId() { 00046 return $this->getData('id'); 00047 } 00048 00053 function setId($id) { 00054 $this->setData('id', $id); 00055 } 00056 00061 function getTitle() { 00062 return $this->getData('title'); 00063 } 00064 00069 function setTitle($title) { 00070 $this->setData('title', $title); 00071 } 00072 00077 function getParentTopicId() { 00078 return $this->getData('parentTopicId'); 00079 } 00080 00085 function setParentTopicId($parentTopicId) { 00086 $this->setData('parentTopicId', $parentTopicId); 00087 } 00088 00093 function &getTopics() { 00094 return $this->topics; 00095 } 00096 00102 function addTopic(&$topic) { 00103 $this->topics[] = $topic; 00104 } 00105 00110 function &getBreadcrumbs() { 00111 return $this->breadcrumbs; 00112 } 00113 00119 function addBreadcrumb($name,$url) { 00120 $this->breadcrumbs[$name] = $url; 00121 } 00122 00123 } 00124 00125 ?>
1.5.6