Definition at line 53 of file report_view.inc.
◆ buildTable()
ReportListView::buildTable |
( |
| ) |
|
Definition at line 72 of file report_view.inc.
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.";
◆ drawView()
ReportListView::drawView |
( |
| ) |
|
Definition at line 94 of file report_view.inc.
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";
◆ ReportListView()
ReportListView::ReportListView |
( |
|
$manager_class, |
|
|
|
$identifier |
|
) |
| |
Definition at line 61 of file report_view.inc.
64 $this->reports = Query::create(
CustomReport,
"WHERE manager_class=:manager_class AND title != '' ORDER BY title")
65 ->bind(
":manager_class", $manager_class)
◆ writeScript()
ReportListView::writeScript |
( |
| ) |
|
Definition at line 89 of file report_view.inc.
91 return $this->table->writeScript();
◆ $buttons_at_top
ReportListView::$buttons_at_top = true |
◆ $identifier
ReportListView::$identifier |
◆ $reports
◆ $resultsPage
ReportListView::$resultsPage |
◆ $table
The documentation for this class was generated from the following file: