Settings_GlobalPermission_Record_Model
extends Settings_Vtiger_Record_Model
in package
Settings GlobalPermission record model class.
Tags
Table of Contents
- GLOBAL_ACTION_EDIT = 2
- GLOBAL_ACTION_VIEW = 1
- $value : array<string|int, mixed>
- __construct() : mixed
- Constructor.
- get() : mixed
- Function to get the value for a given key.
- getArray() : array<string|int, mixed>
- Function to get the array values for a given key.
- getData() : array<string|int, mixed>
- Function to get all the values of the Object.
- getDisplayValue() : mixed
- Get display value.
- getForHtml() : mixed
- Function to get the html encoded value for a given key.
- getForSql() : mixed
- Function to get the value if its safe to use for SQL Query (column).
- getGlobalPermissions() : mixed
- getId() : int
- Record ID.
- getKeys() : array<string|int, string>
- Function to get keys.
- getName() : string
- Record name.
- getRecordLinks() : array<string|int, Vtiger_Link_Model>
- Get record links.
- has() : bool
- Function to check if the key exists.
- isEmpty() : bool
- Function to check if the key is empty.
- recalculate() : mixed
- remove() : mixed
- Function to remove the value.
- save() : mixed
- set() : $this
- Function to set the value for a given key.
- setData() : $this
- Function to set all the values.
Constants
GLOBAL_ACTION_EDIT
public
mixed
GLOBAL_ACTION_EDIT
= 2
GLOBAL_ACTION_VIEW
public
mixed
GLOBAL_ACTION_VIEW
= 1
Properties
$value
protected
array<string|int, mixed>
$value
Values
Methods
__construct()
Constructor.
public
__construct([array<string|int, mixed> $values = [] ]) : mixed
Parameters
- $values : array<string|int, mixed> = []
Return values
mixed —get()
Function to get the value for a given key.
public
get(string $key) : mixed
Parameters
- $key : string
Return values
mixed —Value for the given key
getArray()
Function to get the array values for a given key.
public
getArray(string $key[, array<string|int, mixed> $value = [] ]) : array<string|int, mixed>
Parameters
- $key : string
- $value : array<string|int, mixed> = []
Return values
array<string|int, mixed> —getData()
Function to get all the values of the Object.
public
getData() : array<string|int, mixed>
Return values
array<string|int, mixed> —getDisplayValue()
Get display value.
public
getDisplayValue(string $key) : mixed
Parameters
- $key : string
Return values
mixed —getForHtml()
Function to get the html encoded value for a given key.
public
getForHtml(string $key) : mixed
Parameters
- $key : string
Return values
mixed —getForSql()
Function to get the value if its safe to use for SQL Query (column).
public
getForSql(string $key[, bool $skipEmtpy = true ]) : mixed
Parameters
- $key : string
- $skipEmtpy : bool = true
-
Skip the check if string is empty
Return values
mixed —Value for the given key
getGlobalPermissions()
public
static getGlobalPermissions() : mixed
Return values
mixed —getId()
Record ID.
public
getId() : int
Return values
int —getKeys()
Function to get keys.
public
getKeys() : array<string|int, string>
Return values
array<string|int, string> —getName()
Record name.
public
getName() : string
Return values
string —getRecordLinks()
Get record links.
public
getRecordLinks() : array<string|int, Vtiger_Link_Model>
Return values
array<string|int, Vtiger_Link_Model> —has()
Function to check if the key exists.
public
has(string $key) : bool
Parameters
- $key : string
Return values
bool —isEmpty()
Function to check if the key is empty.
public
isEmpty(string $key) : bool
Parameters
- $key : string
Return values
bool —recalculate()
public
static recalculate() : mixed
Return values
mixed —remove()
Function to remove the value.
public
remove(string $key) : mixed
Parameters
- $key : string
Return values
mixed —save()
public
static save(mixed $profileID, mixed $globalactionid, mixed $checked) : mixed
Parameters
- $profileID : mixed
- $globalactionid : mixed
- $checked : mixed
Return values
mixed —set()
Function to set the value for a given key.
public
set(string $key, mixed $value) : $this
Parameters
- $key : string
- $value : mixed
Return values
$this —setData()
Function to set all the values.
public
setData(mixed $values) : $this
Parameters
- $values : mixed