SurveyComponentManager - manages survey component; the class name SurveyManager is used for management of the survey feature.
More...
SurveyComponentManager - manages survey component; the class name SurveyManager is used for management of the survey feature.
- Author
- janice
Definition at line 46 of file survey_component_manager.inc.
◆ deleteSurvey()
static SurveyComponentManager::deleteSurvey |
( |
|
$survey | ) |
|
|
static |
Definition at line 129 of file survey_component_manager.inc.
134 $tx =
new DataTransaction();
139 $xref->joinTransaction(
$tx);
140 $xref->delete(
"WHERE survey_id={$survey_id}");
165 ->bind(
":survey_question_id",
$question->survey_question_id)
166 ->executeValue(
"COUNT(1)");
static deleteSurveyResponse($response)
if(! $user) if(! $response_id) $response
◆ deleteSurveyResponse()
static SurveyComponentManager::deleteSurveyResponse |
( |
|
$response | ) |
|
|
static |
◆ deleteUser()
static SurveyComponentManager::deleteUser |
( |
|
$user | ) |
|
|
static |
Respond to fired event DeleteUser.
Delete any records in this component that have dependencies on user object.
- Parameters
-
obj | $user | - class SiteUser or custom user class |
Definition at line 97 of file survey_component_manager.inc.
102 trace(
"Component survey is deleting objects dependent on user_id {$user_id}", 3);
104 $tx =
new DataTransaction();
static deleteSurvey($survey)
◆ enumerateContextHelpClasses()
static SurveyComponentManager::enumerateContextHelpClasses |
( |
|
$classes | ) |
|
|
static |
◆ enumerateDataItemClasses()
static SurveyComponentManager::enumerateDataItemClasses |
( |
|
$classes | ) |
|
|
static |
◆ setDefaults()
static SurveyComponentManager::setDefaults |
( |
| ) |
|
|
static |
Definition at line 63 of file survey_component_manager.inc.
65 trace(
"SurveyManager::setDefaults", 3);
69 Settings::setDefaultValue(
"survey",
"sender_email",
"",
"String",
"The email address that will appear as the sender of the survey email",
"Survey Emails");
70 Settings::setDefaultValue(
"survey",
"email_subject",
"Survey from ".
$config[
"http_host"],
"String",
"The default or standard subject line for survey emails",
"Survey Emails");
71 Settings::setDefaultValue(
"survey",
"message_footer",
"<br><br>Click the link below to access the survey:<br>[survey_link]<br><br>or go to<br>[survey_intro_link], click on [survey_title], and enter your access token [token] at the prompt.<br>",
"Text",
"The text to be included below the main
72 message in all surveys, providing users with a link to response.
73 The text within brackets represent codes that will be filled in with data
74 from the survey record when the survey is sent.",
"Survey Emails");
75 Settings::setDefaultValue(
"survey",
"interactive_graphs",
false, Boolean,
"Show interactive SVG graphs on the report screens, rather than static images");
static setDefaultValue($component, $name, $value, $field_type="String", $annotation="", $category="", $options="", $weight=0)
Sets the default value of the given component setting.
◆ SurveyComponentManager()
SurveyComponentManager::SurveyComponentManager |
( |
| ) |
|
◆ upgradeComponent()
static SurveyComponentManager::upgradeComponent |
( |
|
$version | ) |
|
|
static |
The documentation for this class was generated from the following file: