expressionFixedDbVar
extends PluginBase
in package
expressionFixedDbVar : add some fixed DB var : SEED, STARTDATE …
Tags
Table of Contents
Properties
- $allowedPublicMethods : mixed
- $description : mixed
- $name : mixed
- $settings : mixed
- $storage : mixed
Methods
- addFixedDbVar() : mixed
- Add the fixed know var to valid variables
- beforeSurveySettings() : void
- Add the option inside survey settings
- beforeTwigViews() : mixed
- Update value just before views
- getPluginSettings() : mixed
- init() : mixed
- newSurveySettings() : void
- Save the survey settings
- getAddedVars() : array<string|int, string>
- get the fiuxed var to be added for this survey
Properties
$allowedPublicMethods
public
mixed
$allowedPublicMethods
= array()
Tags
$description
protected
static mixed
$description
= 'Add SEED and other DB var in ExpressionScript Engine.'
$name
protected
static mixed
$name
= 'expressionFixedDbVar'
$settings
protected
mixed
$settings
= array('SEED' => array('type' => 'checkbox', 'label' => 'Add SEED variable', 'default' => '1', 'column' => 'seed'), 'SUBMITDATE' => array('type' => 'checkbox', 'label' => 'Add SUBMITDATE variable', 'default' => '1', 'column' => 'submitdate'), 'STARTDATE' => array('type' => 'checkbox', 'label' => 'Add STARTDATE variable', 'default' => '0', 'column' => 'startdate'), 'DATESTAMP' => array('type' => 'checkbox', 'label' => 'Add DATESTAMP variable', 'default' => '1', 'column' => 'datestamp'), 'LASTPAGE' => array('type' => 'checkbox', 'label' => 'Add LASTPAGE variable', 'default' => '0', 'column' => 'lastpage'), 'STARTLANGUAGE' => array('type' => 'checkbox', 'label' => 'Add STARTLANGUAGE variable', 'default' => '0', 'column' => 'startlanguage'), 'IPADDR' => array('type' => 'checkbox', 'label' => 'Add IPADDR variable', 'default' => '0', 'column' => 'ipaddr'), 'REFURL' => array('type' => 'checkbox', 'label' => 'Add REFURL variable', 'default' => '0', 'column' => 'ipaddr'))
Tags
$storage
protected
mixed
$storage
= 'DbStorage'
Methods
addFixedDbVar()
Add the fixed know var to valid variables
public
addFixedDbVar() : mixed
Tags
beforeSurveySettings()
Add the option inside survey settings
public
beforeSurveySettings() : void
beforeTwigViews()
Update value just before views
public
beforeTwigViews() : mixed
getPluginSettings()
public
getPluginSettings([mixed $getValues = true ]) : mixed
Parameters
- $getValues : mixed = true
Tags
init()
public
init() : mixed
newSurveySettings()
Save the survey settings
public
newSurveySettings() : void
getAddedVars()
get the fiuxed var to be added for this survey
private
getAddedVars(int $surveyId) : array<string|int, string>
Parameters
- $surveyId : int