_title = $data['title']; $this->_anchor = $data['anchor']; $this->_baseurl = $data['baseurl']; $this->_baseturl = $data['baseturl']; $this->_subsections = array(); parent::toArray($data['subsection']); foreach ($data['subsection'] as $key => $value) { $this->_subsections[] = new DSubSection($value, $this->_baseurl, $this->_baseturl); } } /* Get the title. */ public function getTitle() { return $this->_title; } /* Get the anchor name. */ public function getAnchor() { return $this->_anchor; } /* Get the base URL. */ public function getBaseURL() { return $this->_baseurl; } /* Get the list of optional subsections. */ public function getSubSections() { return $this->_subsections; } } ?>