Xataface  2.0alpha2
Xataface Application Framework
 All Data Structures Namespaces Files Functions Variables Groups Pages
Functions
functions.inc.php File Reference

Go to the source code of this file.

Functions

 getUser ()
 Gets the currently logged in user.
 getRole ()
 Gets the role of the currently logged in user.
 isAdmin ()
 Checks if the currently logged-in user is an administrator.

Function Documentation

getRole ( )

Gets the role of the currently logged in user.

Returns
String The role of the currently logged in user (or null if none).

Definition at line 27 of file functions.inc.php.

getUser ( )

Gets the currently logged in user.

Returns
{Dataface_Record} Dataface_Record object encapsulating the row from the users table of the currently logged-in user. If no user is logged in, then this will return null.

Definition at line 14 of file functions.inc.php.

isAdmin ( )

Checks if the currently logged-in user is an administrator.

Returns
boolean

Definition at line 41 of file functions.inc.php.