Documentation

Services extends CRMEntity
in package

Table of Contents

$column_fields  : mixed
$customFieldTable  : mixed
Mandatory table for supporting custom fields.
$def_basicsearch_col  : mixed
$def_detailview_recname  : mixed
$default_order_by  : mixed
$default_sort_order  : mixed
$IsCustomModule  : mixed
Indicator if this is a custom module or standard module
$list_fields_name  : mixed
$mandatory_fields  : mixed
$popup_fields  : mixed
$relationFields  : array<string|int, string>
$search_fields  : mixed
$search_fields_name  : mixed
$tab_name  : mixed
Mandatory for Saving, Include tables related to this module.
$tab_name_index  : mixed
Mandatory for Saving, Include tablename and tablekey columnname here.
$table_index  : mixed
$table_name  : mixed
moduleHandler()  : mixed
Invoked when special actions are performed on the module.
setRelationTables()  : 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_servicecf', 'serviceid']

$def_basicsearch_col

public mixed $def_basicsearch_col = 'servicename'

$def_detailview_recname

public mixed $def_detailview_recname = 'servicename'

$default_order_by

public mixed $default_order_by = ''

$default_sort_order

public mixed $default_sort_order = 'ASC'

$IsCustomModule

Indicator if this is a custom module or standard module

public mixed $IsCustomModule = rue

$list_fields_name

public mixed $list_fields_name = [ // Format: Field Label => fieldname 'Service No' => 'service_no', 'Service Name' => 'servicename', 'Commission Rate' => 'commissionrate', 'No of Units' => 'qty_per_unit', 'Price' => 'unit_price', ]

$mandatory_fields

public mixed $mandatory_fields = ['servicename', 'assigned_user_id']

$popup_fields

public mixed $popup_fields = ['servicename', 'service_usageunit', 'unit_price']

$relationFields

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

List of fields in the RelationListView

$search_fields

public mixed $search_fields = [ // Format: Field Label => Array(tablename, columnname) // tablename should not have prefix 'vtiger_' 'Service No' => ['service' => 'service_no'], 'Service Name' => ['service' => 'servicename'], 'Price' => ['service' => 'unit_price'], ]

$search_fields_name

public mixed $search_fields_name = []

$tab_name

Mandatory for Saving, Include tables related to this module.

public mixed $tab_name = ['vtiger_crmentity', 'vtiger_service', 'vtiger_servicecf']

$tab_name_index

Mandatory for Saving, Include tablename and tablekey columnname here.

public mixed $tab_name_index = ['vtiger_crmentity' => 'crmid', 'vtiger_service' => 'serviceid', 'vtiger_servicecf' => 'serviceid']

$table_index

public mixed $table_index = 'serviceid'

$table_name

public mixed $table_name = 'vtiger_service'

Methods

moduleHandler()

Invoked when special actions are performed on the module.

public moduleHandler(string $moduleName, string $eventType) : mixed
Parameters
$moduleName : string
$eventType : string
Return values
mixed

setRelationTables()

Function to get the relation tables for related modules.

public setRelationTables([mixed $secmodule = false ]) : mixed
Parameters
$secmodule : mixed = false
Return values
mixed

        

Search results