FieldsDependency
in package
Fields dependency class.
Table of Contents
- GUI_BACKEND = 0
- GUI_FRONTEND = 1
- VIEWS = ['Create' => 'LBL_VIEW_CREATE', 'Edit' => 'LBL_VIEW_EDIT', 'Detail' => 'LBL_VIEW_DETAIL', 'QuickCreate' => 'LBL_QUICK_CREATE', 'QuickEdit' => 'LBL_QUICK_EDIT']
- $recordModelCache : array<string|int, mixed>
- Cache variable for list of fields to hide for a record in a view.
- getByModule() : array<string|int, mixed>
- Get the dependency list for module.
- getByRecordModel() : array<string|int, mixed>
- Get the list of fields to hide for a record in a view.
Constants
GUI_BACKEND
public
int
GUI_BACKEND
= 0
GUI_FRONTEND
public
int
GUI_FRONTEND
= 1
VIEWS
public
array<string|int, mixed>
VIEWS
= ['Create' => 'LBL_VIEW_CREATE', 'Edit' => 'LBL_VIEW_EDIT', 'Detail' => 'LBL_VIEW_DETAIL', 'QuickCreate' => 'LBL_QUICK_CREATE', 'QuickEdit' => 'LBL_QUICK_EDIT']
Views labels
Properties
$recordModelCache
Cache variable for list of fields to hide for a record in a view.
public
static array<string|int, mixed>
$recordModelCache
= []
Tags
Methods
getByModule()
Get the dependency list for module.
public
static getByModule(int $tabId[, int|null $gui = null ]) : array<string|int, mixed>
Parameters
- $tabId : int
- $gui : int|null = null
Return values
array<string|int, mixed> —getByRecordModel()
Get the list of fields to hide for a record in a view.
public
static getByRecordModel(string $view, Vtiger_Record_Model $recordModel[, bool $cache = true ]) : array<string|int, mixed>
Parameters
- $view : string
- $recordModel : Vtiger_Record_Model
- $cache : bool = true