Documentation

OSSEmployees extends Vtiger_CRMEntity
in package

Table of Contents

$column_fields  : mixed
$customFieldTable  : mixed
Mandatory table for supporting custom fields.
$db  : mixed
$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
$special_functions  : 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
__construct()  : mixed
__getChildEmployees()  : mixed
__getParentEmployees()  : mixed
getEmployeeHierarchy()  : mixed
Function to get Employees hierarchy of the given Employees.
moduleHandler()  : mixed

Properties

$customFieldTable

Mandatory table for supporting custom fields.

public mixed $customFieldTable = ['vtiger_ossemployeescf', 'ossemployeesid']

$def_basicsearch_col

public mixed $def_basicsearch_col = 'last_name'

$def_detailview_recname

public mixed $def_detailview_recname = 'last_name'

$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 'LBL_NAME' => 'name', 'LBL_LASTNAME' => 'last_name', 'LBL_BUSINESSPHONE' => 'business_phone', 'LBL_BUSINESSMAIL' => 'business_mail', 'Assigned To' => 'assigned_user_id', 'FL_POSITION' => 'position', ]

$mandatory_fields

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

$popup_fields

public mixed $popup_fields = ['last_name']

$relationFields

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

List of fields in the RelationListView

$search_fields

public mixed $search_fields = ['LBL_LASTNAME' => ['ossemployees', 'last_name'], 'LBL_NAME' => ['ossemployees', 'name'], 'LBL_BUSINESSPHONE' => ['ossemployees', 'business_phone'], 'LBL_BUSINESSMAIL' => ['ossemployees', 'business_mail'], 'Assigned To' => ['crmentity', 'smownerid'], 'FL_POSITION' => ['crmentity', 'position']]

$search_fields_name

public mixed $search_fields_name = []

$special_functions

public mixed $special_functions = ['set_import_assigned_user']

$tab_name

Mandatory for Saving, Include tables related to this module.

public mixed $tab_name = ['vtiger_crmentity', 'vtiger_ossemployees', 'vtiger_ossemployeescf', 'vtiger_entity_stats']

$tab_name_index

Mandatory for Saving, Include tablename and tablekey columnname here.

public mixed $tab_name_index = ['vtiger_crmentity' => 'crmid', 'vtiger_ossemployees' => 'ossemployeesid', 'vtiger_ossemployeescf' => 'ossemployeesid', 'vtiger_entity_stats' => 'crmid']

$table_index

public mixed $table_index = 'ossemployeesid'

$table_name

public mixed $table_name = 'vtiger_ossemployees'

Methods

__construct()

public __construct() : mixed
Return values
mixed

__getChildEmployees()

public __getChildEmployees(mixed $id, mixed &$childAccounts, mixed $depth) : mixed
Parameters
$id : mixed
$childAccounts : mixed
$depth : mixed
Return values
mixed

__getParentEmployees()

public __getParentEmployees(mixed $id, mixed &$parentAccounts, mixed &$encounteredAccounts) : mixed
Parameters
$id : mixed
$parentAccounts : mixed
$encounteredAccounts : mixed
Return values
mixed

getEmployeeHierarchy()

Function to get Employees hierarchy of the given Employees.

public getEmployeeHierarchy(int $id) : mixed
Parameters
$id : int
  • employeeid returns Employees hierarchy in array format
Return values
mixed

moduleHandler()

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

        

Search results