Definition at line 34 of file User.php.
◆ __construct()
User::__construct |
( |
| $id, |
|
|
| $prefix = "" ) |
#- The constructor initialises a new record, potentially reading it from the database.
- Parameters
-
int | $id | The user_no, or 0 if we are creating a new one |
string | $prefix | The prefix for entry fields |
Definition at line 57 of file User.php.
◆ AllowedTo()
User::AllowedTo |
( |
| $whatever | ) |
|
Can the user do this?
- Parameters
-
string | $whatever | What the user wants to do |
- Returns
- boolean Whether they are allowed to.
First we globally short-circuit the 'admin can do anything'
Definition at line 98 of file User.php.
◆ GetRoles()
Get the group memberships for the user
Definition at line 149 of file User.php.
◆ Render()
Render the form / viewer as HTML to show the user
- Returns
- string An HTML fragment to display in the page.
Definition at line 164 of file User.php.
◆ RenderFields()
User::RenderFields |
( |
| $ef, |
|
|
| $title = null ) |
Render the core details to show to the user
- Parameters
-
object | $ef | The entry form. |
string | $title | The title to display above the entry fields. |
- Returns
- string An HTML fragment to display in the page.
Definition at line 198 of file User.php.
◆ RenderRoles()
User::RenderRoles |
( |
| $ef, |
|
|
| $title = null ) |
Render the user's administrative roles
- Returns
- string The string of html to be output
Definition at line 269 of file User.php.
◆ Validate()
Validate the information the user submitted
- Returns
- boolean Whether the form data validated OK.
Definition at line 315 of file User.php.
◆ Write()
◆ WriteRoles()
Write the roles associated with the user
- Returns
- Success.
Definition at line 377 of file User.php.
◆ $prefix
◆ $user_no
The documentation for this class was generated from the following file: