CMS  Version 3.9
survey_dashboard.inc File Reference

Go to the source code of this file.

Variables

 $constraint = "WHERE deleted=0 "
 
if(!checkRole("admin")) $mgr = new SurveyDashboardManager(new Survey())
 
 $surveys
 
 $table = new DataListView($surveys, "surveys")
 
$table emptyMessage = "There are no surveys."
 
$table sortable = true
 
$table pageSize = 10
 
$table filter = true
 
$table cssStyle = "width: 98%"
 
 $script = $table->writeScript()
 

Variable Documentation

◆ $constraint

$constraint = "WHERE deleted=0 "

Definition at line 51 of file survey_dashboard.inc.

◆ $mgr

if (!checkRole("admin")) $mgr = new SurveyDashboardManager(new Survey())

Definition at line 59 of file survey_dashboard.inc.

◆ $script

$script = $table->writeScript()

Definition at line 79 of file survey_dashboard.inc.

◆ $surveys

$surveys
Initial value:
= Query::create(Survey, "$constraint ORDER BY status, start_date DESC")
->execute()

Definition at line 61 of file survey_dashboard.inc.

◆ $table

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

Definition at line 64 of file survey_dashboard.inc.

◆ cssStyle

$table cssStyle = "width: 98%"

Definition at line 77 of file survey_dashboard.inc.

◆ emptyMessage

$table emptyMessage = "There are no surveys."

Definition at line 73 of file survey_dashboard.inc.

◆ filter

$table filter = true

Definition at line 76 of file survey_dashboard.inc.

◆ pageSize

$table pageSize = 10

Definition at line 75 of file survey_dashboard.inc.

◆ sortable

$table sortable = true

Definition at line 74 of file survey_dashboard.inc.