Record
extends Record
in package
Webservice premium container - Loads the details of a product class.
Table of Contents
- $allowedHeaders : array<string|int, mixed>
- $allowedMethod : array<string|int, string>
- $controller : Controller
- $recordModel : Vtiger_Record_Model
- $responseType : string
- $isUserPermissions : bool
- $unitPrice : float|null
- $userData : array<string|int, mixed>
- checkAction() : void
- Check called action.
- delete() : bool
- Delete record.
- get() : array<string|int, mixed>
- Get record detail.
- getLanguage() : string
- Get current language.
- getParentCrmId() : int|null
- Get parent record.
- getPermissionType() : int
- Get permission type.
- getUserCrmId() : int
- Get crmid for portal user.
- getUserData() : mixed
- Get user data and session data.
- getUserStorageId() : int
- Get user storage ID.
- post() : array<string|int, mixed>
- Create record.
- preProcess() : mixed
- Pre process function.
- put() : array<string|int, mixed>
- Edit record.
- setAllUserData() : void
- Set user data.
- setUserData() : void
- Set user data.
- updateSession() : void
- Update user session.
- updateUser() : void
- Update user data.
- checkLifetimeSession() : void
- Check lifetime user session.
- checkPermission() : void
- Check permission to method.
- checkPermissionToModule() : void
- Check permission to module.
- loadSession() : void
- Load user session data .
- getProductBundles() : array<string|int, mixed>
- Get product bundles.
- getRecordFromRow() : array<string|int, mixed>
- Get record from row.
- getUnitGross() : float
- Get unit gross.
- getUnitPrice() : float
- Get unit price.
Properties
$allowedHeaders
public
array<string|int, mixed>
$allowedHeaders
= ['x-parent-id', 'x-unit-price', 'x-unit-gross', 'x-product-bundles']
Allowed headers
$allowedMethod
public
array<string|int, string>
$allowedMethod
Allowed methods
$controller
public
Controller
$controller
$recordModel
public
Vtiger_Record_Model
$recordModel
Record model instance.
$responseType
public
string
$responseType
= 'data'
Response data type.
$isUserPermissions
private
bool
$isUserPermissions
Is user permissions.
$unitPrice
private
float|null
$unitPrice
Unit price.
$userData
private
array<string|int, mixed>
$userData
= []
User data
Methods
checkAction()
Check called action.
public
checkAction() : void
Tags
Return values
void —delete()
Delete record.
public
delete() : bool
Tags
Return values
bool —get()
Get record detail.
public
get() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —getLanguage()
Get current language.
public
getLanguage() : string
Return values
string —getParentCrmId()
Get parent record.
public
getParentCrmId() : int|null
Tags
Return values
int|null —getPermissionType()
Get permission type.
public
getPermissionType() : int
Return values
int —getUserCrmId()
Get crmid for portal user.
public
getUserCrmId() : int
Return values
int —getUserData()
Get user data and session data.
public
getUserData(string $key[, string $param = '' ]) : mixed
Parameters
- $key : string
- $param : string = ''
Return values
mixed —getUserStorageId()
Get user storage ID.
public
getUserStorageId() : int
Return values
int —post()
Create record.
public
post() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —preProcess()
Pre process function.
public
preProcess() : mixed
Return values
mixed —put()
Edit record.
public
put() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —setAllUserData()
Set user data.
public
setAllUserData(array<string|int, mixed> $data) : void
Parameters
- $data : array<string|int, mixed>
Return values
void —setUserData()
Set user data.
public
setUserData(string $key, mixed $value) : void
Parameters
- $key : string
- $value : mixed
Return values
void —updateSession()
Update user session.
public
updateSession([array<string|int, mixed> $data = [] ]) : void
Parameters
- $data : array<string|int, mixed> = []
Return values
void —updateUser()
Update user data.
public
updateUser([array<string|int, mixed> $data = [] ]) : void
Parameters
- $data : array<string|int, mixed> = []
Return values
void —checkLifetimeSession()
Check lifetime user session.
protected
checkLifetimeSession() : void
Tags
Return values
void —checkPermission()
Check permission to method.
protected
checkPermission() : void
Tags
Return values
void —checkPermissionToModule()
Check permission to module.
protected
checkPermissionToModule() : void
Tags
Return values
void —loadSession()
Load user session data .
protected
loadSession() : void
Tags
Return values
void —getProductBundles()
Get product bundles.
private
getProductBundles() : array<string|int, mixed>
Return values
array<string|int, mixed> —getRecordFromRow()
Get record from row.
private
getRecordFromRow(array<string|int, mixed> $row, array<string|int, Vtiger_Field_Model> $fieldsModel) : array<string|int, mixed>
Parameters
- $row : array<string|int, mixed>
- $fieldsModel : array<string|int, Vtiger_Field_Model>
Return values
array<string|int, mixed> —getUnitGross()
Get unit gross.
private
getUnitGross(array<string|int, mixed> $response) : float
Parameters
- $response : array<string|int, mixed>
Return values
float —getUnitPrice()
Get unit price.
private
getUnitPrice(array<string|int, mixed> $response) : float
Parameters
- $response : array<string|int, mixed>