Example #1
0
 /**
  * @param Response $response
  * @param $path
  */
 protected function show_files(Response $response, $path)
 {
     /* This is the correct way to loop over the directory. */
     $ob = "<ul>";
     foreach ($this->get_log_files($path) as $f) {
         $ob .= "<li>" . Menu::get_filemenu_html($f, false) . "</li>";
     }
     $ob .= "</ul>";
     $response->append_body($ob);
 }
 /**
  * @param Response $response
  **/
 public function write(Response $response)
 {
     $response->append_header($this->get_chart_js());
     $response->append_body($this->get_canvas_html());
 }