FastBroadcastPerson encapsulates the acces to the fields of the person arrays inside of an event array.

possible persons are locations, organizer, djs, guest.

 Methods

The City assigne to the person

City() : string

Returns

stringthe city

The Countra as an abbreviation (D - Deutschland.

Country() : string

.)

Returns

stringthe title

The Persons firstname

Firstname() : string

Returns

stringThe firstname

The Fullname of the Person

Fullname() : string

Returns

stringThe Fullname

The persons ID

ID() : int

Returns

intthe persons id (required to get a persons-image form the server for axample)

This Method creates an URL to access the image from the FastBroadcast Server with the params width and height you can specify a rect the image fits in

ImageURL(string $key, int $width, int $height) : string

Parameters

$key

string

the name of the image

$width

int

the max width of the image

$height

int

the max height of the image

Returns

stringthe image-url

Is there a city assigned

IsCity() : bool

Returns

bool

Is there a country assigned

IsCountry() : bool

Returns

bool

does the specified field exist

IsField(string $key) : bool

Parameters

$key

string

the key

Returns

booltrue if the key exists

for naturally persons ther might ba first names assigned

IsFirstname() : bool

Returns

booltrue if there is a valid first name assigned

Is there a Full Name assigned

IsFullname() : bool

Returns

booltrue if there is a fullname, otherwise false

Is there an id?

IsID() : bool

Returns

booltrue if there is an id

for naturally persons ther might ba last names assigned

IsLastname() : bool

Returns

booltrue if there is a valid last name assigned

Is there al Latitude assigned?

IsLatitude() : bool

Returns

booltrue if there ist a latitude assigned

Is there al longitude assigned?

IsLongitude() : bool

Returns

booltrue if there ist a longitude assigned

Is there a mobile phone number assigned

IsMobile() : bool

Returns

bool

is there a Name assigned to the Person

IsName() : bool

Returns

booltrue if there ist a valid name assigned

Is there a nickname assigned

IsNickname() : bool

Returns

bool

Is there a phonenumber assigned

IsPhone() : bool

Returns

bool

Is there a street assigned

IsStreet() : bool

Returns

bool

Is there a text assigned to the person

IsText() : bool

Returns

bool

Is there a title assigned

IsTitle() : bool

Returns

bool

is there an url to the person homepage assigned?

IsURL() : bool

Returns

booltru if there ist an url assigned

Is there a ZIP-code assigned

IsZIP() : bool

Returns

bool

The Persons lastname

Lastname() : string

Returns

stringThe lastname

The latitude

Latitude() : string

Returns

stringthe latitude

This Method creates an URL to access the logo from the FastBroadcast Server with the params width and height you can specify a rect the logo fits in

LogoURL(int $nr, int $width, int $height) : string

Parameters

$nr

int

the number of the logo

$width

int

the max width of the logo

$height

int

the max height of the logo

Returns

stringthe url

The latitude

Longitude() : string

Returns

stringthe longitude

The Title (Dr.

Mobile() : string

Prof etc..)

Returns

stringthe title

The Persons Name

Name() : string

Returns

stringThe Persons name

The Persons nickname

Nickname() : string

Returns

stringThe nickname

The Phone number

Phone() : string

Returns

stringthe phonenumber

Set the Person to access the data for a location or an organizer

SetPerson(array $person) 

Parameters

$person

array

a person array from the event array

A Street assigned to the person

Street() : string

Returns

stringthe street

A Text assigned to the Person

Text() : string

Returns

stringthe text

The Title (Dr.

Title() : string

Prof etc..)

Returns

stringthe title

the url to the person homepage

URL() : string

Returns

stringthe url

The ZIP-Code

ZIP() : string

Returns

stringthe zip-code

Konstructor - there is no need to create an object from this class in your code.

__construct(array $person) 

Objects are created and given back from FastBroadcastEvent

Parameters

$person

array

a person array from the event array

secure get a row of the array

get(string $key) : string

Parameters

$key

string

the key to the value in the array

Returns

stringthe value matching to the key if the row exists otherwise an empty string

 Properties

 

the Person array

$_person