Documentation

Contacts extends CRMEntity
in package

Table of Contents

$column_fields  : mixed
$customFieldTable  : mixed
Mandatory table for supporting custom fields.
$def_basicsearch_col  : mixed
$default_order_by  : mixed
$default_sort_order  : mixed
$emailTemplate_defaultFields  : mixed
$list_fields_name  : mixed
$mandatory_fields  : mixed
$relationFields  : array<string|int, string>
$search_fields  : mixed
$search_fields_name  : mixed
$tab_name  : mixed
$tab_name_index  : mixed
$table_index  : mixed
$table_name  : mixed
getChild()  : array<string|int, mixed>
Function to Recursively get all the child.
getHierarchy()  : array<string|int, mixed>
Function to get contacts hierarchy.
getHierarchyData()  : array<string|int, mixed>
Function to create array of all the contacts in the hierarchy.
getParent()  : array<string|int, mixed>
Function to Recursively get all the parent.
setRelationTables()  : array<string|int, mixed>
Function to get the relation tables for related modules.

Properties

$column_fields

public mixed $column_fields = []

$customFieldTable

Mandatory table for supporting custom fields.

public mixed $customFieldTable = ['vtiger_contactscf', 'contactid']

$def_basicsearch_col

public mixed $def_basicsearch_col = 'lastname'

$default_order_by

public mixed $default_order_by = ''

$default_sort_order

public mixed $default_sort_order = 'ASC'

$emailTemplate_defaultFields

public mixed $emailTemplate_defaultFields = ['firstname', 'lastname', 'title', 'email', 'department', 'phone', 'mobile']

$list_fields_name

public mixed $list_fields_name = ['First Name' => 'firstname', 'Last Name' => 'lastname', 'Member Of' => 'parent_id', 'Email' => 'email', 'Office Phone' => 'phone', 'Assigned To' => 'assigned_user_id']

$mandatory_fields

public mixed $mandatory_fields = ['assigned_user_id', 'lastname', 'createdtime', 'modifiedtime']

$relationFields

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

List of fields in the RelationListView

$search_fields

public mixed $search_fields = ['First Name' => ['contactdetails' => 'firstname'], 'Last Name' => ['contactdetails' => 'lastname'], 'Member Of' => ['contactdetails' => 'parent_id'], 'Assigned To' => ['crmentity' => 'smownerid']]

$search_fields_name

public mixed $search_fields_name = []

$tab_name

public mixed $tab_name = ['vtiger_crmentity', 'vtiger_contactdetails', 'vtiger_contactaddress', 'vtiger_contactsubdetails', 'vtiger_contactscf', 'vtiger_customerdetails', 'vtiger_entity_stats']

$tab_name_index

public mixed $tab_name_index = ['vtiger_crmentity' => 'crmid', 'vtiger_contactdetails' => 'contactid', 'vtiger_contactaddress' => 'contactaddressid', 'vtiger_contactsubdetails' => 'contactsubscriptionid', 'vtiger_contactscf' => 'contactid', 'vtiger_customerdetails' => 'customerid', 'vtiger_entity_stats' => 'crmid']

$table_index

public mixed $table_index = 'contactid'

$table_name

public mixed $table_name = 'vtiger_contactdetails'

Methods

getChild()

Function to Recursively get all the child.

public getChild(int $id, array<string|int, mixed> &$childRow, int $depthBase) : array<string|int, mixed>
Parameters
$id : int
$childRow : array<string|int, mixed>
$depthBase : int
Return values
array<string|int, mixed>

getHierarchy()

Function to get contacts hierarchy.

public getHierarchy(int $id[, bool $getRawData = false ][, bool $getLinks = true ]) : array<string|int, mixed>
Parameters
$id : int
$getRawData : bool = false
$getLinks : bool = true
Return values
array<string|int, mixed>

getHierarchyData()

Function to create array of all the contacts in the hierarchy.

public getHierarchyData(int $id, array<string|int, mixed> $baseInfo, int $recordId, array<string|int, mixed> &$listviewEntries[, bool $getRawData = false ][, bool $getLinks = true ]) : array<string|int, mixed>
Parameters
$id : int
$baseInfo : array<string|int, mixed>
$recordId : int
  • id
$listviewEntries : array<string|int, mixed>
$getRawData : bool = false
$getLinks : bool = true
Return values
array<string|int, mixed>

getParent()

Function to Recursively get all the parent.

public getParent(int $id, array<string|int, mixed> &$parent, array<string|int, mixed> &$encountered, int $depthBase) : array<string|int, mixed>
Parameters
$id : int
$parent : array<string|int, mixed>
$encountered : array<string|int, mixed>
$depthBase : int
Return values
array<string|int, mixed>

setRelationTables()

Function to get the relation tables for related modules.

public setRelationTables([bool|string $secModule = false ]) : array<string|int, mixed>
Parameters
$secModule : bool|string = false

secondary module name

Return values
array<string|int, mixed>

with table names and fieldnames storing relations between module and this module


        

Search results