Documentation

Project 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
$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
getChild()  : array<string|int, mixed>
Function to Recursively get all the child projects of a given project.
getHierarchy()  : array<string|int, mixed>
Function to get project hierarchy in array format.
getHierarchyData()  : array<string|int, mixed>
Function to create array of all the sales in the hierarchy.
getParent()  : array<string|int, mixed>
Function to Recursively get all the upper projects of a given.
moduleHandler()  : mixed
Invoked when special actions are performed on the module.
registerLinks()  : mixed

Properties

$column_fields

public mixed $column_fields = []

$customFieldTable

Mandatory table for supporting custom fields.

public mixed $customFieldTable = ['vtiger_projectcf', 'projectid']

$def_basicsearch_col

public mixed $def_basicsearch_col = 'projectname'

$def_detailview_recname

public mixed $def_detailview_recname = 'projectname'

$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 'Project Name' => 'projectname', 'Start Date' => 'startdate', 'Status' => 'projectstatus', 'Type' => 'projecttype', 'Assigned To' => 'assigned_user_id', 'Total time [Sum]' => 'sum_time', ]

$mandatory_fields

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

$popup_fields

public mixed $popup_fields = ['projectname']

$relationFields

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

$search_fields

public mixed $search_fields = [ // Format: Field Label => Array(tablename, columnname) // tablename should not have prefix 'vtiger_' 'Project Name' => ['project', 'projectname'], 'Related to' => ['project', 'linktoaccountscontacts'], 'Start Date' => ['project', 'startdate'], 'Status' => ['project', 'projectstatus'], 'Type' => ['project', 'projecttype'], 'SINGLE_SSalesProcesses' => ['project', 'ssalesprocessesid'], ]

$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_project', 'vtiger_projectcf', 'vtiger_entity_stats']

$tab_name_index

Mandatory for Saving, Include tablename and tablekey columnname here.

public mixed $tab_name_index = ['vtiger_crmentity' => 'crmid', 'vtiger_project' => 'projectid', 'vtiger_projectcf' => 'projectid', 'vtiger_entity_stats' => 'crmid']

$table_index

public mixed $table_index = 'projectid'

$table_name

public mixed $table_name = 'vtiger_project'

Methods

getChild()

Function to Recursively get all the child projects of a given project.

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 project hierarchy in array format.

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 sales 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
$listviewEntries : array<string|int, mixed>
$getRawData : bool = false
$getLinks : bool = true
Tags
throws
ReflectionException
Return values
array<string|int, mixed>

getParent()

Function to Recursively get all the upper projects of a given.

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

moduleHandler()

Invoked when special actions are performed on the module.

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

Search results