CMS  Version 3.9
SurveyManager Class Reference

Public Member Functions

 SurveyManager ()
 

Static Public Member Functions

static surveyTabs ($key="")
 
static getSurveyTabs ($key)
 

Detailed Description

Definition at line 43 of file survey_manager.inc.

Member Function Documentation

◆ getSurveyTabs()

static SurveyManager::getSurveyTabs (   $key)
static

Definition at line 60 of file survey_manager.inc.

61  {
62  $formTitle = "Create a Survey";
63  $viewTitle = "Preview/Send";
64 
65  if($key)
66  {
67  $survey = new Survey($key);
68  $formTitle = ($survey->isEditable()) ? "Edit Survey" : "Survey Details";
69  $viewTitle = (!$survey->isSent()) ? "Preview/Send" : "Manage Survey";
70  }
71 
72  $images[0] = "<img src='/fakoli/images/tab_create_survey.gif' style='display: inline-block;vertical-align: middle; border: none'/>&nbsp;";
73  $images[1] = "<img src='/fakoli/images/tab_view_results.gif' style='display: inline-block;vertical-align: middle; border: none'/>&nbsp;";
74 
75  $tabs = array(
76  $images[0] . $formTitle => array(
77  "Introduction" => "survey_form",
78  "Questions" => "survey_questions",
79  "Email" => "survey_email",
80  "Confirmation" => "survey_confirmation",
81  $viewTitle => "survey_preview"
82  ),
83 
84  $images[1] . "View Results" => array(
85  "Survey Responses" => "survey_results",
86  "Graphical Data" => "survey_data",
87  "Tabular View" => "survey_data_table",
88  "Spreadsheet View" => "survey_spreadsheet"
89  ),
90  );
91 
92  return $tabs;
93  }
$tabs
$images
Definition: images.inc:46
if(! $survey_id) $survey

◆ SurveyManager()

SurveyManager::SurveyManager ( )

Definition at line 45 of file survey_manager.inc.

46  {
47 
48  }

◆ surveyTabs()

static SurveyManager::surveyTabs (   $key = "")
static

Definition at line 51 of file survey_manager.inc.

52  {
54  $qs = ($key) ? "survey_id=$key" : "";
55  $tabBar = new TwoLevelTabBar($tabs, $qs);
56 
57  return $tabBar;
58  }
static getSurveyTabs($key)

The documentation for this class was generated from the following file: