\naigc\v25Person

Functions related to People.

Summary

Methods
Properties
Constants
__construct()
name()
nameFirst()
nameLast()
id()
jsonSerialize()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct(\naigc\v25\util\IMysql  $mysql, int  $personId) : mixed

Creates a new Person object.

Parameters

\naigc\v25\util\IMysql $mysql

The database.

int $personId

The ID of the Person.

Throws

\naigc\v25\exception\FailedMysqliPrepare
\naigc\v25\exception\FailedMysqliExecute
\naigc\v25\exception\Creation

Returns

mixed

name()

name() : string

Gets the first name of the Person.

Returns

string —

The first and last name.

nameFirst()

nameFirst() : string

Gets the first name of the Person.

Returns

string —

The first name.

nameLast()

nameLast() : string

Gets the last name of the Person.

Returns

string —

The last name.

id()

id() : int

Gets the ID of the Person.

Returns

int —

The ID.

jsonSerialize()

jsonSerialize() : array

Serializes object into json format for available properties

Returns

array