class Helper

Helper and utility functions.

Methods

static string|false
buildMenuListItems(array $menu, string $dropdownClass = "")

Creates list of menu items.

static string|null
currentPage()

Determines current page based on REQUEST_URI.

static array
getObjectProperties(object $object)

Gets the properties of the given object

static ProfileImages|false|null
getProfileImage()

Retrieves URL user's current profile image.

Details

at line 23
static string|false buildMenuListItems(array $menu, string $dropdownClass = "")

Creates list of menu items.

Parameters

array $menu

The list of menu items containing the name and the URL path.

string $dropdownClass

The name of the classes that maybe set depending on user input.

Return Value

string|false

Returns the contents of the active output buffer on success or false on failure.

at line 71
static string|null currentPage()

Determines current page based on REQUEST_URI.

Return Value

string|null

$currentPage The current page.

at line 87
static array getObjectProperties(object $object)

Gets the properties of the given object

Parameters

object $object

An object instance.

Return Value

array

An associative array of defined object accessible non-static properties for the specified object in scope. If a property have not been assigned a value, it will be returned with a null value.

at line 97
static ProfileImages|false|null getProfileImage()

Retrieves URL user's current profile image.

Return Value

ProfileImages|false|null

The associative array for the profile image's record.