LimeSurvey API - Master branch

expressionFixedDbVar extends PluginBase
in package

expressionFixedDbVar : add some fixed DB var : SEED, STARTDATE …

Tags
author

Denis Chenu denis@sondages.pro

copyright

2019-2021 LimeSurvey - Denis Chenu

license

GPL version 3

version
1.0.2

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.

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
inheritdoc

this plugin didn't have any public method

$description

protected static mixed $description = 'Add SEED and other DB var in ExpressionScript Engine.'

$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
inheritdoc

Methods

beforeSurveySettings()

Add the option inside survey settings

public beforeSurveySettings() : void

getPluginSettings()

public getPluginSettings([mixed $getValues = true ]) : mixed
Parameters
$getValues : mixed = true
Tags
inheritdoc

Add translation for label

getAddedVars()

get the fiuxed var to be added for this survey

private getAddedVars(int $surveyId) : array<string|int, string>
Parameters
$surveyId : int
Return values
array<string|int, string>

        
On this page

Search results