O3PO_People
in package
Shared people data and name helpers.
Tags
Table of Contents
Methods
- compare_names() : mixed
- Compare names
- get_formated_name_from_uuidv4() : mixed
- Get a person's formatted name from their UUID.
- get_person_data() : array<string|int, mixed>
- Get person data from settings storage in a convenient array structure
- sort_by_first_names() : mixed
- Sort by first names
- sort_by_last_names() : mixed
- Sort by last names
- get_person_uuidv4s() : mixed
Methods
compare_names()
Compare names
public
static compare_names(mixed $name_a, mixed $name_b) : mixed
Tries to takes into account name prefixes.
Parameters
- $name_a : mixed
- $name_b : mixed
Tags
get_formated_name_from_uuidv4()
Get a person's formatted name from their UUID.
public
static get_formated_name_from_uuidv4(mixed $uuidv4) : mixed
Parameters
- $uuidv4 : mixed
Tags
get_person_data()
Get person data from settings storage in a convenient array structure
public
static get_person_data() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —Array with of arrays, one per person, containing that persons data.
sort_by_first_names()
Sort by first names
public
static sort_by_first_names(mixed $person_a, mixed $person_b) : mixed
Parameters
- $person_a : mixed
- $person_b : mixed
Tags
sort_by_last_names()
Sort by last names
public
static sort_by_last_names(mixed $person_a, mixed $person_b) : mixed
Parameters
- $person_a : mixed
- $person_b : mixed
Tags
get_person_uuidv4s()
private
static get_person_uuidv4s(mixed $settings, mixed $person_first_names, mixed $person_last_names) : mixed
Parameters
- $settings : mixed
- $person_first_names : mixed
- $person_last_names : mixed