diff --git a/modules/doc/library/Doc/Section.php b/modules/doc/library/Doc/Section.php new file mode 100644 index 000000000..57419dc0a --- /dev/null +++ b/modules/doc/library/Doc/Section.php @@ -0,0 +1,143 @@ +id = $id; + $this->title = $title; + $this->level = $level; + $this->nofollow = $nofollow; + $this->chapterTitle= $chapterTitle; + } + + /** + * Get the ID of the section + * + * @return string + */ + public function getId() + { + return $this->id; + } + + /** + * Get the title of the section + * + * @return string + */ + public function getTitle() + { + return $this->title; + } + + /** + * Get the header level + * + * @return int + */ + public function getLevel() + { + return $this->level; + } + + /** + * Whether to instruct search engines to not index the link to the section + * + * @return bool + */ + public function isNofollow() + { + return $this->nofollow; + } + + /** + * The title of the chapter the section is part of + * + * @return string + */ + public function getChapterTitle() + { + return $this->chapterTitle; + } + + /** + * Append content + * + * @param string $content + */ + public function appendContent($content) + { + $this->content[] = $content; + } + + /** + * Get the content of the section + * + * @return array + */ + public function getContent() + { + return $this->content; + } +}