dokeos-auth
[ class tree: dokeos-auth ] [ index: dokeos-auth ] [ all elements ]

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:

include(local.inc.php) [line 592]
include_once(image.lib.php) [line 82]
include_once(fileManage.lib.php) [line 80]
include_once(fileUpload.lib.php) [line 81]
require('../inc/global.inc.php') [line 46]
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


require_once(api_get_path(LIBRARY_PATH).'formvalidator/FormValidator.class.php') [line 47]
require_once(usermanager.lib.php) [line 83]
require_once(api_get_path(CONFIGURATION_PATH).'profile.conf.php') [line 73]






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:

return:  string containing the XHTML code to dipslay the production list, or FALSE


Parameters

$user_id   $user_id   User id
$force   $force   Optional parameter to force building after a removal request
[ Top ]



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:

return:  uri to the picture


Parameters

$user_id   $user_id   User id
[ Top ]



get_user_productions [line 451]

An get_user_productions( $user_id $user_id)

Returns an array with the user's productions.



Tags:

return:  array containing the user's productions


Parameters

$user_id   $user_id   User id
[ Top ]



is_profile_editable [line 266]

boolean is_profile_editable( )

Can a user edit his/her profile?



Tags:

return:  Editability of the profile


[ Top ]



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
[ Top ]



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
[ Top ]



upload_user_image [line 309]

The upload_user_image( $user_id $user_id)

Upload a submitted user image.



Tags:

return:  filename of the new picture or FALSE if the upload has failed


Parameters

$user_id   $user_id   User id
[ Top ]



upload_user_production [line 479]

The upload_user_production( $user_id $user_id)

Upload a submitted user production.



Tags:

return:  filename of the new production or FALSE if the upload has failed


Parameters

$user_id   $user_id   User id
[ Top ]



Documentation generated on Wed, 05 Sep 2007 06:15:03 +0200 by phpDocumentor 1.4.0