CMS  Version 3.9
slideshow_picker.inc File Reference

Go to the source code of this file.

Functions

 countPhotos ($gallery)
 

Variables

 $editor = $_GET["Editor"]
 
 $galleries = Query::create(ImageGallery, "ORDER BY gallery_name")->execute()
 
 $table = new DataListView($galleries, "galleries")
 
$table sortable = true
 
$table emptyMessage = "No image galleries have been created"
 
$table pageSize = 5
 
$table zebra = false
 
 $script = $table->writeScript()
 

Function Documentation

◆ countPhotos()

countPhotos (   $gallery)

Definition at line 40 of file slideshow_picker.inc.

41 {
42  return Query::create(ImageRecord, "WHERE gallery_id=:id AND include_in_slideshow=1")
43  ->bind(":id", $gallery->gallery_id)
44  ->executeValue("COUNT(1)");
45 }

Variable Documentation

◆ $editor

$editor = $_GET["Editor"]

Definition at line 6 of file slideshow_picker.inc.

◆ $galleries

$galleries = Query::create(ImageGallery, "ORDER BY gallery_name")->execute()

Definition at line 8 of file slideshow_picker.inc.

◆ $script

$script = $table->writeScript()

Definition at line 20 of file slideshow_picker.inc.

◆ $table

$table = new DataListView($galleries, "galleries")

Definition at line 10 of file slideshow_picker.inc.

◆ emptyMessage

$table emptyMessage = "No image galleries have been created"

Definition at line 16 of file slideshow_picker.inc.

◆ pageSize

$table pageSize = 5

Definition at line 17 of file slideshow_picker.inc.

◆ sortable

$table sortable = true

Definition at line 15 of file slideshow_picker.inc.

◆ zebra

$table zebra = false

Definition at line 18 of file slideshow_picker.inc.