Procedural File: profile.php
Source Location: /main/auth/profile.php
Page Details:
This file displays the user's profile, optionally it allows users to modify their profile as well.
See inc/conf/profile.conf.php to modify settings
Includes:
build_production_list [line 417]
A build_production_list(
$user_id $user_id, [$force $force = false])
|
|
Returns an XHTML formatted list of productions for a user, or FALSE if he doesn't have any. If there has been a request to remove a production, the function will return without building the list unless forced to do so by the optional second parameter. This increases performance by avoiding to read through the productions on the filesystem before the removal request has been carried out because they'll have to be re-read afterwards anyway.
Tags:
Parameters
| $user_id |
$user_id |
User id |
| $force |
$force |
Optional parameter to force building after a removal request |
get_user_image [line 285]
The get_user_image(
$user_id $user_id)
|
|
Deprecated function. Use UserManager::get_user_picture_path_by_id($user_id,'none') instead Get a user's display picture. If the user doesn't have a picture, this function will return an empty string.
Tags:
Parameters
| $user_id |
$user_id |
User id |
get_user_productions [line 451]
An get_user_productions(
$user_id $user_id)
|
|
Returns an array with the user's productions.
Tags:
Parameters
| $user_id |
$user_id |
User id |
is_profile_editable [line 266]
boolean is_profile_editable(
)
|
|
Can a user edit his/her profile?
Tags:
remove_user_image [line 382]
void remove_user_image(
$user_id $user_id)
|
|
Remove an existing user image.
Parameters
| $user_id |
$user_id |
User id |
remove_user_production [line 502]
void remove_user_production(
$user_id $user_id, $production $production)
|
|
Remove a user production.
Parameters
| $user_id |
$user_id |
User id |
| $production |
$production |
The production to remove |
upload_user_image [line 309]
The upload_user_image(
$user_id $user_id)
|
|
Upload a submitted user image.
Tags:
Parameters
| $user_id |
$user_id |
User id |
upload_user_production [line 479]
The upload_user_production(
$user_id $user_id)
|
|
Upload a submitted user production.
Tags:
Parameters
| $user_id |
$user_id |
User id |
|