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");
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});
86 $this->table->drawView();
This class maps the publication table.
The DocumentManager class provides the core API and management functions for uploading documents and ...
DocumentTotalDownloadsView($library)
static usingFeature()
Uses the specified framework feature(s).