/** * Writes a sidebar. */ private function writeSidebar() { $handle = fopen($this->buildFilename('_Sidebar'), 'w'); fwrite($handle, '[**Overview**](Home)'); $this->nl($handle); fwrite($handle, '[**Tags**](Tags)'); $this->nl($handle); foreach ($this->glossary->getTags() as $tag) { fwrite($handle, "* [#{$tag}]({$tag})\n"); } fclose($handle); }