64 $this->reports = Query::create(
CustomReport,
"WHERE manager_class=:manager_class AND title != '' ORDER BY title")
65 ->bind(
":manager_class", $manager_class)
75 $table =
new DataListView($this->reports,
"CustomReports");
76 $table->column(
"Title",
"<a href='{$this->identifier}?report_id={report_id}&edit=1'>{title}</a>",
true)
77 ->column(
"Description",
"{description}")
78 ->column(
"Actions",
"<a class='button' href='{$this->identifier}?report_id={report_id}'>Run</a> <a class='button' href='{$this->identifier}?report_id={report_id}&edit=1'>Edit</a>");
81 $table->emptyMessage =
"There are no custom reports.";
91 return $this->table->writeScript();
96 if($this->buttons_at_top)
98 echo
"<p><a class='button' href='{$this->identifier}'>Create a New Report</a></p>\n";
101 $this->table->drawView();
103 echo
"<p><a class='button' href='{$this->identifier}'>Create a New Report</a></p>\n";
static usingFeature()
Uses the specified framework feature(s).
ReportListView($manager_class, $identifier)