Definition at line 41 of file document_stats_view.inc.
◆ DocumentTotalDownloadsView()
DocumentTotalDownloadsView::DocumentTotalDownloadsView |
( |
|
$library | ) |
|
Definition at line 46 of file document_stats_view.inc.
50 $join =
new InnerJoin();
53 $results = $join->query(
"WHERE document_library_id={$this->library->document_library_id} ORDER BY title");
55 $this->table =
new DataListView($results,
"document_download_stats_total");
56 $this->table->column(
"File",
"<a href='#' onclick='docManager.editDocumentDetailsDialog({Document.document_id})'>{Document.title}</a>",
true,
"width: 80%")
57 ->column(
"# Downloads",
"{DocumentDownloadTotalStats.download_count:0}",
true,
"width: 20%; text-align: right");
59 $this->table->filter =
true;
60 $this->table->pageSize = 25;
61 $this->table->excelFile =
$library->identifier.
"_download_stats_".date(
"Y_m_d").
".xls";
62 $this->table->emptyMessage =
"No documents have been downloaded from this library";
64 $this->table->footerText(
"Total")
65 ->footerTotal(
"{DocumentDownloadTotalStats.download_count:0}",
"text-align: right");
This class maps the publication table.
◆ drawView()
DocumentTotalDownloadsView::drawView |
( |
| ) |
|
◆ writeScript()
DocumentTotalDownloadsView::writeScript |
( |
| ) |
|
Definition at line 68 of file document_stats_view.inc.
70 $script = $this->table->writeScript();
72 <script type=
'text/javascript' src=
'/components/document/js/document_manager.js'></script>
73 <script type=
'text/javascript'>
75 window.addEvent(
'domready',
function()
77 docManager =
new DocumentManager({$this->library->document_library_id});
The DocumentManager class provides the core API and management functions for uploading documents and ...
◆ $library
DocumentTotalDownloadsView::$library |
◆ $table
DocumentTotalDownloadsView::$table |
The documentation for this class was generated from the following file: