00001 <?php 00002 00016 // $Id: HelpTopic.inc.php,v 1.9 2008/07/01 01:16:09 asmecher Exp $ 00017 00018 00019 class HelpTopic extends DataObject { 00020 00022 var $sections; 00023 00025 var $relatedTopics; 00026 00030 function HelpTopic() { 00031 parent::DataObject(); 00032 $this->sections = array(); 00033 $this->relatedTopics = array(); 00034 } 00035 00036 // 00037 // Get/set methods 00038 // 00039 00044 function getId() { 00045 return $this->getData('id'); 00046 } 00047 00052 function setId($id) { 00053 $this->setData('id', $id); 00054 } 00055 00060 function getTitle() { 00061 return $this->getData('title'); 00062 } 00063 00068 function setTitle($title) { 00069 $this->setData('title', $title); 00070 } 00071 00076 function getTocId() { 00077 return $this->getData('tocId'); 00078 } 00079 00084 function setTocId($tocId) { 00085 $this->setData('tocId', $tocId); 00086 } 00087 00092 function getSubTocId() { 00093 return $this->getData('subTocId'); 00094 } 00095 00100 function setSubTocId($subTocId) { 00101 $this->setData('subTocId', $subTocId); 00102 } 00103 00108 function &getSections() { 00109 return $this->sections; 00110 } 00111 00117 function addSection(&$section) { 00118 $this->sections[] = $section; 00119 } 00120 00125 function &getRelatedTopics() { 00126 return $this->relatedTopics; 00127 } 00128 00133 function addRelatedTopic(&$relatedTopic) { 00134 $this->relatedTopics[] = $relatedTopic; 00135 } 00136 00137 } 00138 00139 ?>
1.5.6