Exakat\Reports\Devoops::makeSummary PHP Method

makeSummary() protected method

protected makeSummary ( $summary, $level )
    protected function makeSummary($summary, $level = 0)
    {
        if ($level === 0) {
            $html = '<ul class="nav main-menu">';
            foreach ($summary as $title => $section) {
                $html .= <<<HTML
                <li class="dropdown">
\t\t\t\t\t<a href="#" class="dropdown-toggle">
\t\t\t\t\t\t<i class="fa fa-bar-chart-o"></i>
\t\t\t\t\t\t<span class="hidden-xs">{$title}</span>
\t\t\t\t\t</a>
HTML;
                $html .= $this->makeSummary($section, $level + 1);
            }
            $html .= '</ul>';
        } else {
            $html = '<ul class="dropdown-menu">';
            foreach ($summary as $title => $section) {
                $filename = $this->makeFileName($title);
                $html .= <<<HTML
\t\t\t\t\t\t<li><a href="ajax/{$filename}" class="exakat-link">{$title}</a></li>
HTML;
            }
            $html .= '</ul>';
        }
        return $html;
    }