\FAA\Obj\GenericCompany

Summary

Methods
Properties
Constants
__construct()
UpdateAttributeServiceroles()
SearchFields()
Logo()
Name()
Branch()
Branches()
Address()
GetVisitCard()
ToPlainObject()
$
$
$
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$

$ :string|null

name

Type

string|null

$

$ :string|null

homepage

Type

string|null

$

$ :mixed|null

emailaddress

Type

mixed|null

Methods

__construct()

__construct(integer  $id = null,string  $language = null)

Company constructor.

Parameters

integer $id

A company id

string $language

The local language

UpdateAttributeServiceroles()

UpdateAttributeServiceroles(Object  $attr,array  $data): \FAA\Obj\Result

Callback on update validate service roles This function is called when the primary identifyer is changed, is called from objecthandler->updateentity

Parameters

Object $attr

The changed attribute

array $data

The new attribute value

Returns

\FAA\Obj\Result —

A system result object

SearchFields()

SearchFields(): array

Return search indexer fields Convert instance to search indexer values

Returns

array —

The search indexer fields

Logo()

Logo(): \FAA\Obj\Generic\Asset|null

Get the company logo

Returns

\FAA\Obj\Generic\Asset|null

Name()

Name(): string|null

Get the name

Returns

string|null

Branch()

Branch(  $id): mixed|null

Get a single branch row

Parameters

$id

Returns

mixed|null

Branches()

Branches(): array|null

List of branches

Returns

array|null

Address()

Address(): mixed|null

List of addresses

Returns

mixed|null

GetVisitCard()

GetVisitCard(): \JeroenDesloovere\VCard\VCard

Create this users visit card

Returns

\JeroenDesloovere\VCard\VCard

ToPlainObject()

ToPlainObject(  $language = null,  $withparent = true)

Parameters

$language
$withparent