FileAccess Orion

EventLocation extends Address
in package
Uses Images

Define system event location object

Tags
category

Core content type

author

Tobias Teichner webmaster@teichner.biz

since

File available since v6.4.0

Table of Contents

$  : string|null
$  : string|null
$  : string|null
$  : string|null
$  : string|null
$  : string|null
$  : string|null
$  : string|null
$  : string|null
$  : string|null
$  : array<string|int, mixed>|null
__construct()  : mixed
Event location constructor.
AssignImage()  : Result
Assign an image from instance
ContactPerson()  : array<string|int, mixed>|string|null
Streamlined interface to get the contact person data
Country()  : string|null
CountryCode()  : string|null
Data()  : array<string|int, mixed>|null
Direct get data method
GeneralSearchFields()  : array<string|int, mixed>
Get list of general search fields
GeoCode()  : array<string|int, mixed>|null
Get go location information about this address
GetPrimaryPicture()  : Asset|null
Get the primary picture
Id()  : string|null
Get id of this address, is set as side effect of data setter
Images()  : array<string|int, mixed>|array<string|int, Asset>
List images
IsFilled()  : bool
Has minimal required data
MainImage()  : Asset|null
Get main image
Name()  : string
Get the name
PhoneClear()  : string|null
RequireGeoCode()  : bool
Requires and can geo locate
Salutation()  : string|stdClass|null
Get salutation
SearchFields()  : array<string|int, mixed>
Get the list of searchable fields
ToPlainObject()  : stdClass
Get resolved

Properties

$

public string|null $

zipcode The postal code

$

public string|null $

town The town name

$

public string|null $

phone The primary phone number

$

public string|null $

cell_phone The primary mobile phone number

$

public string|null $

email The primary email

$

public string|null $

name The contact person name

$

public string|null $

last_name The contact person last name

$

public string|null $

street The street and number

$

public string|null $

company The company name

$

public string|null $

salutation Salutation of contact person

$

public array<string|int, mixed>|null $

geo_location The geolocation array

Methods

__construct()

Event location constructor.

public __construct([null|string $id = null ][, null|string $language = null ]) : mixed
Parameters
$id : null|string = null

The event location id

$language : null|string = null

The local language or null

Return values
mixed

AssignImage()

Assign an image from instance

public AssignImage(Asset $asset) : Result
Parameters
$asset : Asset

An asset instance

Return values
Result

The result object

ContactPerson()

Streamlined interface to get the contact person data

public ContactPerson([string|null $key = null ]) : array<string|int, mixed>|string|null
Parameters
$key : string|null = null
Return values
array<string|int, mixed>|string|null

Either a single part or a set of field when present

Country()

public Country() : string|null
Return values
string|null

CountryCode()

public CountryCode() : string|null
Return values
string|null

Data()

Direct get data method

public Data([array<string|int, mixed>|null $data = null ]) : array<string|int, mixed>|null
Parameters
$data : array<string|int, mixed>|null = null
Return values
array<string|int, mixed>|null

GeneralSearchFields()

Get list of general search fields

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

GeoCode()

Get go location information about this address

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

GetPrimaryPicture()

Get the primary picture

public GetPrimaryPicture() : Asset|null
Return values
Asset|null

Id()

Get id of this address, is set as side effect of data setter

public Id() : string|null
Return values
string|null

Images()

List images

public Images([bool $resolved = false ]) : array<string|int, mixed>|array<string|int, Asset>

Get the content of the images attribute relation Will generate and return an empty array hen attribute is not filled

Parameters
$resolved : bool = false
Return values
array<string|int, mixed>|array<string|int, Asset>

IsFilled()

Has minimal required data

public IsFilled() : bool
Return values
bool

Is filled with enough data

MainImage()

Get main image

public MainImage() : Asset|null
Return values
Asset|null

Name()

Get the name

public Name() : string

get a label in format of address [Company] | [Street], Zipcode Town

Return values
string

PhoneClear()

public PhoneClear([string $prefix = '' ]) : string|null
Parameters
$prefix : string = ''
Return values
string|null

RequireGeoCode()

Requires and can geo locate

public RequireGeoCode() : bool
Return values
bool

Salutation()

Get salutation

public Salutation([string|null $language = null ]) : string|stdClass|null

Get the translated salutation from this content type. Can be raw as well.

Parameters
$language : string|null = null

Translate to this language

Return values
string|stdClass|null

The option value

SearchFields()

Get the list of searchable fields

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

ToPlainObject()

Get resolved

public ToPlainObject([ $language = null ][,  $with_parent = true ]) : stdClass
Parameters
$language : = null
$with_parent : = true
Return values
stdClass

Search results