Documentation

Passwords extends Vtiger_CRMEntity
in package

Passwords class.

Table of Contents

$column_fields  : mixed
$customFieldTable  : array<string|int, mixed>
$db  : mixed
$def_basicsearch_col  : array<string|int, mixed>
$def_detailview_recname  : array<string|int, mixed>
$default_order_by  : array<string|int, mixed>
$default_sort_order  : array<string|int, mixed>
$IsCustomModule  : mixed
Indicator if this is a custom module or standard module
$list_fields_name  : array<string|int, mixed>
$mandatory_fields  : array<string|int, mixed>
Used when enabling/disabling the mandatory fields for the module.
$popup_fields  : array<string|int, mixed>
$search_fields  : array<string|int, mixed>
For Popup listview and UI type support.
$search_fields_name  : array<string|int, mixed>
$special_functions  : mixed
$tab_name  : array<string|int, mixed>
$tab_name_index  : mixed
Mandatory for Saving, Include tablename and tablekey columnname here.
$table_index  : Table
$table_name  : Table
$tableJoinClause  : array<string|int, string>
__construct()  : mixed
Constructor which will set the column_fields in this object.
getInstance()  : self
Get CRMEntity instance.
getJoinClause()  : string
Get table join clause by table name.
getLockFields()  : array<string|int, mixed>
Gets fields to locking record.
moduleHandler()  : mixed
Invoked when special actions are performed on the module.
retrieveEntityInfo()  : mixed
Retrieve record information of the module.
setRelationTables()  : array<string|int, mixed>
Function to get the relation tables for related modules.
trackLinkedInfo()  : mixed
Function to track when a new record is linked to a given record.
trackUnLinkedInfo()  : mixed
Function to track when a record is unlinked to a given record.
createColumnAliasForField()  : string
Function returns the column alias for a field.
init()  : void
Loading the system configuration.

Properties

$column_fields

public mixed $column_fields = []

$customFieldTable

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

Mandatory table for supporting custom fields.

$def_basicsearch_col

public array<string|int, mixed> $def_basicsearch_col = 'subject'

For Alphabetical search

$def_detailview_recname

public array<string|int, mixed> $def_detailview_recname = 'subject'

Column value to use on detail view record text display

$default_order_by

public array<string|int, mixed> $default_order_by = ''

Default sort field

$default_sort_order

public array<string|int, mixed> $default_sort_order = 'ASC'

Default sort direction

$IsCustomModule

Indicator if this is a custom module or standard module

public mixed $IsCustomModule = \true

$list_fields_name

public array<string|int, mixed> $list_fields_name = ['FL_SUBJECT' => 'subject', 'Assigned To' => 'assigned_user_id']

Default fields on the list

$mandatory_fields

Used when enabling/disabling the mandatory fields for the module.

public array<string|int, mixed> $mandatory_fields = ['subject', 'assigned_user_id']

Refers to vtiger_field.fieldname values.

$popup_fields

public array<string|int, mixed> $popup_fields = ['subject']

For Popup window record selection

$search_fields

For Popup listview and UI type support.

public array<string|int, mixed> $search_fields = ['FL_SUBJECT' => ['passwords', 'subject'], 'Assigned To' => ['vtiger_crmentity', 'assigned_user_id']]

Format: Field Label => Array(tablename, columnname).

$search_fields_name

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

$special_functions

public mixed $special_functions = ['set_import_assigned_user']

$tab_name

public array<string|int, mixed> $tab_name = ['vtiger_crmentity', 'u_yf_passwords']

Mandatory for Saving, Include tables related to this module.

$tab_name_index

Mandatory for Saving, Include tablename and tablekey columnname here.

public mixed $tab_name_index = ['vtiger_crmentity' => 'crmid', 'u_yf_passwords' => 'passwordsid']

$table_index

public Table $table_index = 'passwordsid'

index

$table_name

public Table $table_name = 'u_yf_passwords'

name

$tableJoinClause

public array<string|int, string> $tableJoinClause = ['vtiger_entity_stats' => 'LEFT JOIN', 'u_yf_openstreetmap' => 'LEFT JOIN', 'u_yf_wapro_records_map' => 'LEFT JOIN']

Tables join clause.

Methods

__construct()

Constructor which will set the column_fields in this object.

public __construct() : mixed
Return values
mixed

getInstance()

Get CRMEntity instance.

public static getInstance(string $module) : self
Parameters
$module : string
Return values
self

getJoinClause()

Get table join clause by table name.

public getJoinClause(string $tableName) : string
Parameters
$tableName : string
Return values
string

getLockFields()

Gets fields to locking record.

public getLockFields() : array<string|int, mixed>
Return values
array<string|int, mixed>

moduleHandler()

Invoked when special actions are performed on the module.

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

Module name

$eventType : string

Event Type

Return values
mixed

retrieveEntityInfo()

Retrieve record information of the module.

public retrieveEntityInfo(int $record, string $module) : mixed
Parameters
$record : int
  • crmid of record
$module : string
  • module name
Return values
mixed

setRelationTables()

Function to get the relation tables for related modules.

public setRelationTables([string $secModule = false ]) : array<string|int, mixed>
Parameters
$secModule : string = false
  • $secmodule secondary module name
Return values
array<string|int, mixed>

returns the array with table names and fieldnames storing relations between module and this module

trackLinkedInfo()

Function to track when a new record is linked to a given record.

public static trackLinkedInfo(mixed $crmId) : mixed
Parameters
$crmId : mixed
Return values
mixed

trackUnLinkedInfo()

Function to track when a record is unlinked to a given record.

public trackUnLinkedInfo(int $crmId) : mixed
Parameters
$crmId : int
Return values
mixed

createColumnAliasForField()

Function returns the column alias for a field.

protected createColumnAliasForField(array<string|int, mixed> $fieldInfo) : string
Parameters
$fieldInfo : array<string|int, mixed>
  • field information
Return values
string

field value

init()

Loading the system configuration.

protected init() : void
Return values
void

        

Search results