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");
70 return $this->table->writeScript();
75 $this->table->drawView();
static usingFeature()
Uses the specified framework feature(s).
VideoTotalDownloadsView($gallery)