Admin Functions

These functions help you provide functionality for Administrators.

Calling Admin Functions

You can use syntax of the form:

functionName()

to call these functions in your PHP code.

adminId()

Name in Zenario 8

ze\admin::id()

This returns the id of the Administrator who is currently logged in.

adminSetting()

Name in Zenario 8

ze\admin::setting()

If an administrator is logged in, this function will return the value of the named admin setting.

checkPriv()

Name in Zenario 8

ze\priv::check()

Checks whether the current visitor is logged in as an admin, and if they have the rights to perform a named action.

paginationOptions()

Name in Zenario 8

ze\pluginAdm::paginationOptions()

You will need to make a call to function in your fillAdminBox() Method if you have a Plugin that has the option to choose a pagination style as a setting, in order to populate the pagination options.

setAdminSetting()

Name in Zenario 8

ze\admin::setSetting()

This lets you update the saved value of an admin setting for the current administrator.