Definition at line 41 of file video_stats_view.inc.
◆ drawView()
VideoTotalDownloadsView::drawView |
( |
| ) |
|
◆ VideoTotalDownloadsView()
VideoTotalDownloadsView::VideoTotalDownloadsView |
( |
|
$gallery | ) |
|
Definition at line 46 of file video_stats_view.inc.
50 $join =
new InnerJoin();
53 $results = $join->query(
"WHERE video_gallery_id={$this->gallery->video_gallery_id} ORDER BY title");
55 $this->table =
new DataListView($results,
"video_download_stats_total");
56 $this->table->column(
"Video File",
"<a href='video_form?video_id={Video.video_id}'>{Video.title}</a>",
true,
"width: 80%")
57 ->column(
"# Downloads",
"{VideoDownloadTotalStats.download_count:0}",
true,
"width: 20%; text-align: right");
59 $this->table->filter =
true;
60 $this->table->pageSize = 25;
61 $this->table->excelFile =
$gallery->identifier.
"_download_stats_".date(
"Y_m_d").
".xls";
62 $this->table->emptyMessage =
"No videos have been downloaded from this gallery";
64 $this->table->footerText(
"Total")
65 ->footerTotal(
"{VideoDownloadTotalStats.download_count:0}",
"text-align: right");
◆ writeScript()
VideoTotalDownloadsView::writeScript |
( |
| ) |
|
◆ $gallery
VideoTotalDownloadsView::$gallery |
◆ $table
VideoTotalDownloadsView::$table |
The documentation for this class was generated from the following file: