Settings_Companies_Module_Model
extends Settings_Vtiger_Module_Model
in package
Companies module model class.
Tags
Table of Contents
- $baseIndex : mixed
- $baseTable : mixed
- $formFields : array<string|int, mixed>
- List of fields in form.
- $listFields : mixed
- $name : mixed
- getColumnNames() : array<string|int, mixed>|false
- Function to get the column names.
- getDefaultUrl() : string
- Function to get the url for default view of the module.
- getFormFields() : array<string|int, string>
- Return list fields in form.
- getIndustryList() : array<string|int, mixed>
- getNameFields() : bool|array<string|int, mixed>
- Names of fields.
- hasCreatePermissions() : bool
- New entities mustn't be created.
Properties
$baseIndex
public
mixed
$baseIndex
= 'id'
Tags
$baseTable
public
mixed
$baseTable
= 's_yf_companies'
Tags
$formFields
List of fields in form.
public
static array<string|int, mixed>
$formFields
= ['name' => [], 'email' => [], 'vat_id' => ['infoText' => 'LBL_VAT_ID_INFO'], 'country' => [], 'industry' => [], 'website' => ['infoText' => 'LBL_WEBSITE_INFO']]
$listFields
public
mixed
$listFields
= ['name' => 'LBL_NAME', 'email' => 'LBL_EMAIL', 'vat_id' => 'LBL_VAT_ID', 'country' => 'LBL_COUNTRY', 'industry' => 'LBL_INDUSTRY', 'website' => 'LBL_WEBSITE']
Tags
$name
public
mixed
$name
= 'Companies'
Tags
Methods
getColumnNames()
Function to get the column names.
public
static getColumnNames() : array<string|int, mixed>|false
Return values
array<string|int, mixed>|false —getDefaultUrl()
Function to get the url for default view of the module.
public
getDefaultUrl() : string
Return values
string —URL
getFormFields()
Return list fields in form.
public
static getFormFields() : array<string|int, string>
Return values
array<string|int, string> —getIndustryList()
public
static getIndustryList() : array<string|int, mixed>
Return values
array<string|int, mixed> —getNameFields()
Names of fields.
public
getNameFields() : bool|array<string|int, mixed>
Return values
bool|array<string|int, mixed> —hasCreatePermissions()
New entities mustn't be created.
public
hasCreatePermissions() : bool