KnowledgeBase_RecordPopover_Model
extends Vtiger_RecordPopover_Model
in package
Class KnowledgeBase_RecordPopover_Model.
Table of Contents
- $moduleName : string
- Name of module.
- $recordModel : Vtiger_Record_Model
- Model of record which is display.
- $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.
- getFields() : array<string|int, Vtiger_Field_Model>
- Returns list of fields to display.
- getFieldsIcon() : array<string|int, mixed>
- Returns icons for fields.
- 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).
- getHeaderLinks() : array<string|int, Vtiger_Link_Model>
- Returns array with model of buttons.
- getInstance() : Vtiger_RecordPopover_Model
- Function to get model of view "RecordPopover".
- getKeys() : array<string|int, string>
- Function to get keys.
- getRecord() : Vtiger_Record_Model
- Gets model of record.
- has() : bool
- Function to check if the key exists.
- isEmpty() : bool
- Function to check if the key is empty.
- remove() : mixed
- Function to remove the value.
- set() : $this
- Function to set the value for a given key.
- setData() : $this
- Function to set all the values.
- setRecord() : void
- Sets model of record.
Properties
$moduleName
Name of module.
public
string
$moduleName
$recordModel
Model of record which is display.
protected
Vtiger_Record_Model
$recordModel
$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> —getFields()
Returns list of fields to display.
public
getFields() : array<string|int, Vtiger_Field_Model>
Return values
array<string|int, Vtiger_Field_Model> —getFieldsIcon()
Returns icons for fields.
public
getFieldsIcon() : 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 —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
getHeaderLinks()
Returns array with model of buttons.
public
getHeaderLinks() : array<string|int, Vtiger_Link_Model>
Return values
array<string|int, Vtiger_Link_Model> —getInstance()
Function to get model of view "RecordPopover".
public
static getInstance(string $moduleName, int $recordId) : Vtiger_RecordPopover_Model
Parameters
- $moduleName : string
- $recordId : int
Tags
Return values
Vtiger_RecordPopover_Model —getKeys()
Function to get keys.
public
getKeys() : array<string|int, string>
Return values
array<string|int, string> —getRecord()
Gets model of record.
public
getRecord() : Vtiger_Record_Model
Return values
Vtiger_Record_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 —remove()
Function to remove the value.
public
remove(string $key) : mixed
Parameters
- $key : string
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
Return values
$this —setRecord()
Sets model of record.
public
setRecord(Vtiger_Record_Model $recordModel) : void
Parameters
- $recordModel : Vtiger_Record_Model