\naigcPerson

Functions related to people.

Summary

Methods
Properties
Constants
getPrintableName()
getAllPeople()
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

getPrintableName()

getPrintableName(\mysqli  $db, int  $personId = null) : string

Retrieves the name of a person in "Last, First" format.

Parameters

\mysqli $db

The database connection

int $personId

The id of the person.

Returns

string —

The person's name or an empty string if not found.

getAllPeople()

getAllPeople(\naigc\v25\util\IMysql  $mysql) : array

Returns all people.

Parameters

\naigc\v25\util\IMysql $mysql

The database.

Returns

array