\apex\coreadmin

Handles all functions relating to administrator accounts, including create, delete, load, update security questions, etc.

Summary

Methods
Properties
Constants
__construct()
create()
load()
update()
update_status()
delete()
create_select_options()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$admin_id
N/A

Properties

$admin_id

$admin_id :

Type

Methods

__construct()

__construct(integer  $id)

Initiates the class, and accepts an optional ID# of administrator.

Parameters

integer $id

Optional ID# of administrator to manage / update / delete.

create()

create(): integer

Creates a new administrator using the values POSTed.

Returns

integer —

The ID# of the newly created administrator.

load()

load(): array

Loads the administrator profile

Returns

array —

An array containing the administrator's profile

update()

update()

Updates the administrator profile using POST values

update_status()

update_status(string  $status)

Update administrator status

Parameters

string $status

The new status of the administrator

delete()

delete()

Deletes the administrator from the database

create_select_options()

create_select_options(integer  $selected,boolean  $add_prefix = false): string

Creates select options for all administrators in the database

Parameters

integer $selected

The ID# of the administrator that should be selected. Defaults to 0.

boolean $add_prefix

Whether or not to previs label of each option with "Administrator: "

Returns

string —

The HTML options that can be included in a