CMS  Version 3.9
SurveyUpgradeManager Class Reference
+ Inheritance diagram for SurveyUpgradeManager:
+ Collaboration diagram for SurveyUpgradeManager:

Public Member Functions

 SurveyUpgradeManager ()
 
- Public Member Functions inherited from UpgradeManager
 UpgradeManager ()
 
 upgrade ($upgrade_to="")
 
 upgradeOneVersion ($version_number, $function)
 
 executeVersionSql ($version_number)
 
 parseSQLStatements ($lines)
 
 executeSQLStatements ($sqlStatements)
 
 log ($text)
 
 executeVersionXML ($version)
 
 recordUpdate ($version, $description)
 
 saveLogFile ($version)
 
 addSectionContent ($items, $section_name="/", $role="", $template="", $permissions="")
 Utility function for use by calling classes to add an array of items of class Page, ComponentPage, Blog, ImageGallery, DocumentLibrary, Calendar to a section. More...
 
 addModuleToPages ($items, $module_name, $position='right', $sort_order=1)
 Given an array of either identifiers that must be either CMS Page or ComponentPage identifiers or items that are of obj CMSPage, Blog, Calendar, etc., link each to the specified module. More...
 
 searchByIdentifier ($identifier)
 
 addMenuItem ($item, $menu_identifier, $parent_identifier="", $title="", $section_name="", $sort_order=0)
 
 reformatPhone (&$item, $field)
 
 executeSQLFile ($sqlFile, $version_number)
 
 dependsOn ($component, $version)
 

Public Attributes

 $updateMap
 
- Public Attributes inherited from UpgradeManager
 $sqlFile
 
 $xmlDir
 
 $component_name
 
 $log
 

Additional Inherited Members

- Static Public Member Functions inherited from UpgradeManager
static upgradeComponentToVersion ($component, $version)
 

Detailed Description

Definition at line 54 of file survey_upgrade_manager.inc.

Member Function Documentation

◆ SurveyUpgradeManager()

SurveyUpgradeManager::SurveyUpgradeManager ( )

Definition at line 68 of file survey_upgrade_manager.inc.

69  {
70  $this->component_name = "survey";
71 
72  // sets the sqlFile name according to default
73  parent::UpgradeManager();
74  }

Member Data Documentation

◆ $updateMap

SurveyUpgradeManager::$updateMap
Initial value:
= array(
"1.0" => "sql:Initial Installation",
"1.1" => "sql:restructure surveys into types; omit survey template",
"1.2" => "sql:Added context_help field to survey_question",
"1.3" => "sql:Add confirmation_message to survey table",
"1.4" => "sql:Added allow_anonymous_responses flag to survey table",
"1.5" => "sql:Added instructions field to survey table",
"1.6" => "sql:Added show_preview_before_submitting to survey table",
"1.7" => "sql:Add include_in_results to survey_response and to survey add additional_recipients and cc_recipients; add survey_group and survey_group_xref",
"1.8" => "sql:Change survey field status to varchar for sites setup prior to upgrade manager",
)

Definition at line 56 of file survey_upgrade_manager.inc.


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