Documentation

Vies extends Base
in package

Vies record collector class.

Table of Contents

$displayType  : string
Search results display type.
$icon  : string
Icon.
$label  : string
Label.
$moduleName  : string
Module name.
$allowedModules  : array<string|int, string>
Allowed modules.
$fields  : array<string|int, mixed>
List of fields for the modal search window.
$modulesFieldsMap  : array<string|int, mixed>
Fields mapping for loading record data.
$request  : Request
Request instance.
$url  : string
Vies server address.
__construct()  : mixed
Constructor.
getFields()  : Vtiger_Field_Model
Get fields for the modal search window.
isActive()  : bool
Check whether it is active.
search()  : array<string|int, mixed>
Search data function.
setRequest()  : void
Undocumented function.

Properties

$displayType

Search results display type.

public string $displayType = 'Summary'

$icon

Icon.

public string $icon = 'yfi yfi-vies'

$label

Label.

public string $label = 'Vies'

$moduleName

Module name.

public string $moduleName

$allowedModules

Allowed modules.

protected static array<string|int, string> $allowedModules = ['Accounts', 'Leads', 'Vendors', 'Competition']

$fields

List of fields for the modal search window.

protected array<string|int, mixed> $fields = ['countryCode' => ['label' => 'Country', 'labelModule' => '_Base', 'picklistModule' => 'Other.Country', 'uitype' => 16, 'picklistValues' => ['AT' => 'Austria', 'BE' => 'Belgium', 'BG' => 'Bulgaria', 'CY' => 'Cyprus', 'CZ' => 'Czech Republic', 'DE' => 'Germany', 'DK' => 'Denmark', 'EE' => 'Estonia', 'EL' => 'Greece', 'ES' => 'Spain', 'FI' => 'Finland', 'FR' => 'France', 'GB' => 'United Kingdom', 'HR' => 'Croatia', 'HU' => 'Hungary', 'IE' => 'Ireland', 'IT' => 'Italy', 'LT' => 'Lithuania', 'LU' => 'Luxembourg', 'LV' => 'Latvia', 'MT' => 'Malta', 'NL' => 'Netherlands', 'PL' => 'Poland', 'PT' => 'Portugal', 'RO' => 'Romania', 'SE' => 'Sweden', 'SI' => 'Slovenia', 'SK' => 'Slovakia'], 'typeofdata' => 'V~M'], 'vatNumber' => ['labelModule' => '_Base', 'label' => 'Vat ID', 'typeofdata' => 'V~M']]

$modulesFieldsMap

Fields mapping for loading record data.

protected array<string|int, mixed> $modulesFieldsMap = ['Accounts' => ['vatNumber' => 'vat_id'], 'Leads' => ['vatNumber' => 'vat_id'], 'Vendors' => ['vatNumber' => 'vat_id'], 'Competition' => ['vatNumber' => 'vat_id']]

$url

Vies server address.

protected string $url = 'http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl'

Methods

__construct()

Constructor.

public __construct() : mixed
Return values
mixed

getFields()

Get fields for the modal search window.

public getFields() : Vtiger_Field_Model
Return values
Vtiger_Field_Model

isActive()

Check whether it is active.

public isActive() : bool
Return values
bool

Search data function.

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

setRequest()

Undocumented function.

public setRequest(Request $request) : void
Parameters
$request : Request
Return values
void

Search results