NAMESPACE: Bootstrap/Models
Models/Variables.php
This will create a new variable if it doesn’t exist from before
$name |
Return variable id by name
$varname |
Return variable name by id
$varid |
Return global variable for app by id
$varname |
Save a list of variables
$variables |
$exclude |
Returned saved variable for current user If not stored in memory will be queried from the database
$varname |
$default |
Get all variables for the given application
$gid |
Get all variables for a user or return false
$playid |
Get a submitted variable by name. Variables are usually submitted when you trigger a “submit-form-content” action
$varname |
$default |
Returns all submitted variables
Saves all submitted variables. If there is a multiselect, it will convert its values to a json array.
Returns all submitted variables with names as key
Save a list of variables for given user
$vars |
$playid |
$exclude |
Save single variable for current active user
$variable |
$value |
Delete variable for current active user
$variablename |
Load variables for the application
Load variable content for the application
$force |
Retrieve all variables, which belong to a certain “playid” If you intend to use this method without passing a parameter, you may consider referring to $this->varcontent instead
$playid |
Save variable for given user
$variablename |
$value |
$playid |
This trait contains all the variable related functionality - saving, retrieving, deleting, etc. It is used in the main Bootstrap Model so it can be available in the actions that extend it.