Documentation

Settings_WebserviceUsers_Record_Model extends Settings_Vtiger_Record_Model
in package

Record Model.

Tags
copyright

YetiForce Sp. z o.o

license

YetiForce Public License 3.0 (licenses/LicenseEN.txt or yetiforce.com)

author

Radosław Skrzypczak r.skrzypczak@yetiforce.com

author

Mariusz Krzaczkowski m.krzaczkowski@yetiforce.com

Table of Contents

$baseIndex  : string
Table name.
$baseTable  : string
Table name.
$changes  : array<string|int, mixed>
Changes.
$customParamsLabels  : array<string|int, mixed>
$editFields  : array<string|int, string>
Edit fields.
$listFields  : array<string|int, string>
List of fields displayed in list view.
$name  : string
Module Name.
$paramsFields  : array<string|int, mixed>
$value  : mixed
__construct()  : mixed
Constructor.
checkData()  : bool|string
Check if the data is correct.
delete()  : bool
Function removes record.
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.
getCleanInstance()  : self
Function to get the clean instance.
getData()  : array<string|int, mixed>
Function to get all the values of the Object.
getDataForSave()  : array<string|int, mixed>
Function gives data for save.
getDisplayValue()  : mixed
Get display value.
getEditFields()  : array<string|int, string>
Function determines fields available in edition view.
getFieldsForSave()  : array<string|int, mixed>
Function gives list fields for save.
getForHtml()  : mixed
Function to get the html encoded value for a given key.
getFormatDataSession()  : array<string|int, mixed>
Get format data session.
getFormatLoginHistory()  : array<string|int, mixed>
Get format data session.
getForSql()  : mixed
Function to get the value if its safe to use for SQL Query (column).
getId()  : int
Record ID.
getInstanceById()  : self
Function to get the instance, given id.
getKeys()  : array<string|int, string>
Function to get keys.
getListFields()  : array<string|int, mixed>
{@inheritdoc}
getModule()  : Settings_WebserviceUsers_Module_Model
Function to get Module instance.
getName()  : mixed
getRecordLinks()  : mixed
getUserHistoryAccessActivity()  : array<string|int, mixed>
Get user session.
getUserName()  : string
Get user name.
getUserSession()  : array<string|int, mixed>
Get user session.
has()  : bool
Function to check if the key exists.
init()  : mixed
{@inheritdoc}
isEmpty()  : bool
Function to check if the key is empty.
isNew()  : int
Check if record is new.
remove()  : mixed
Function to remove the value.
save()  : bool
Function to save.
set()  : mixed
{@inheritdoc}
setData()  : $this
Function to set all the values.
setModule()  : $this
Function to set Module instance.

Properties

$baseIndex

Table name.

public string $baseIndex = ''

$baseTable

Table name.

public string $baseTable = ''

$changes

Changes.

public array<string|int, mixed> $changes = []

$customParamsLabels

public static array<string|int, mixed> $customParamsLabels = ['language' => 'FL_LANGUAGE', 'ip' => 'FL_LAST_IP', 'invalid_login_time' => 'FL_DATETIME_LAST_INVALID_LOGIN', 'invalid_login' => 'FL_LAST_INVALID_LOGIN', 'logout_time' => 'FL_LOGOUT_TIME', 'last_error' => 'FL_LAST_ERROR', 'error_time' => 'FL_LAST_ERROR_DATE', 'error_method' => 'FL_LAST_ERROR_METHOD', 'version' => 'FL_VERSION', 'fromUrl' => 'FL_FROM_URL', 'agent' => 'LBL_USER_AGENT', 'deviceId' => 'LBL_DEVICE_ID']

$editFields

Edit fields.

public array<string|int, string> $editFields = []

$listFields

List of fields displayed in list view.

public array<string|int, string> $listFields = []

$name

Module Name.

public string $name = 'WebserviceUsers'

$paramsFields

public array<string|int, mixed> $paramsFields = []

$value

protected mixed $value

Methods

__construct()

Constructor.

public __construct([array<string|int, mixed> $values = [] ]) : mixed
Parameters
$values : array<string|int, mixed> = []
Return values
mixed

checkData()

Check if the data is correct.

public checkData() : bool|string
Return values
bool|string

false - if everything is ok

delete()

Function removes record.

public delete() : bool
Return values
bool

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>

getCleanInstance()

Function to get the clean instance.

public static getCleanInstance(string $type) : self
Parameters
$type : string
Return values
self

getData()

Function to get all the values of the Object.

public getData() : array<string|int, mixed>
Return values
array<string|int, mixed>

getDataForSave()

Function gives data for save.

public getDataForSave() : 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

getEditFields()

Function determines fields available in edition view.

public getEditFields() : array<string|int, string>
Return values
array<string|int, string>

getFieldsForSave()

Function gives list fields for save.

public getFieldsForSave() : array<string|int, mixed>
Return values
array<string|int, mixed>

getForHtml()

Function to get the html encoded value for a given key.

public getForHtml(string $key) : mixed
Parameters
$key : string
Return values
mixed

getFormatDataSession()

Get format data session.

public getFormatDataSession(array<string|int, mixed> $row) : array<string|int, mixed>
Parameters
$row : array<string|int, mixed>
Return values
array<string|int, mixed>

getFormatLoginHistory()

Get format data session.

public getFormatLoginHistory(array<string|int, mixed> $row) : array<string|int, mixed>
Parameters
$row : array<string|int, mixed>
Return values
array<string|int, 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

getId()

Record ID.

public getId() : int
Return values
int

getInstanceById()

Function to get the instance, given id.

public static getInstanceById(int $id, string $type) : self
Parameters
$id : int
$type : string
Return values
self

getKeys()

Function to get keys.

public getKeys() : array<string|int, string>
Return values
array<string|int, string>

getListFields()

{@inheritdoc}

public getListFields() : array<string|int, mixed>
Return values
array<string|int, mixed>

getName()

public getName() : mixed
Return values
mixed
public getRecordLinks() : mixed
Return values
mixed

getUserHistoryAccessActivity()

Get user session.

public getUserHistoryAccessActivity(string $container) : array<string|int, mixed>
Parameters
$container : string
Return values
array<string|int, mixed>

getUserName()

Get user name.

public getUserName() : string
Return values
string

getUserSession()

Get user session.

public getUserSession(string $container) : array<string|int, mixed>
Parameters
$container : string
Return values
array<string|int, mixed>

has()

Function to check if the key exists.

public has(string $key) : bool
Parameters
$key : string
Return values
bool

init()

{@inheritdoc}

public init(array<string|int, mixed> $data) : mixed
Parameters
$data : array<string|int, mixed>
Return values
mixed

isEmpty()

Function to check if the key is empty.

public isEmpty(string $key) : bool
Parameters
$key : string
Return values
bool

isNew()

Check if record is new.

public isNew() : int
Return values
int

remove()

Function to remove the value.

public remove(string $key) : mixed
Parameters
$key : string
Return values
mixed

save()

Function to save.

public save() : bool
Return values
bool

set()

{@inheritdoc}

public set(mixed $key, mixed $value) : mixed
Parameters
$key : mixed
$value : mixed
Return values
mixed

setData()

Function to set all the values.

public setData(mixed $values) : $this
Parameters
$values : mixed
Return values
$this

Search results