[ Index ] |
|
Code source de b2evolution 2.1.0-beta |
[Code source] [Imprimer] [Statistiques]
This file implements the User class. This file is part of the evoCore framework - {@link http://evocore.net/} See also {@link http://sourceforge.net/projects/evocms/}.
Author: | fplanque: Francois PLANQUE |
Author: | blueyed: Daniel HAHLER |
Copyright: | (c)2003-2007 by Francois PLANQUE - {@link http://fplanque.net/} |
Version: | $Id: _user.class.php,v 1.2 2007/08/26 17:05:58 blueyed Exp $ |
Poids: | 1437 lignes (42 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
User:: (35 méthodes):
User()
get()
get_preferred_name()
get_num_posts()
get_media_dir()
get_media_url()
set()
set_datecreated()
set_email()
set_Group()
setGroup()
check_perm()
check_perm_blogowner()
check_perm_catsusers()
check_perm_blogusers()
dbinsert()
dbupdate()
dbdelete()
callback_optionsForIdMode()
send_validate_email()
level()
login()
get_msgform_link()
msgform_link()
preferred_name()
url()
num_posts()
first_name()
last_name()
nick_name()
email()
icq()
aim()
yim()
msn()
User( $db_row = NULL ) X-Ref |
Constructor param: object DB row |
get( $parname ) X-Ref |
Get a param param: string the parameter |
get_preferred_name() X-Ref |
Get preferred name of the user, according to {@link User::$idmode}. return: string |
get_num_posts() X-Ref |
Get the number of posts for the user. return: integer |
get_media_dir( $create = true ) X-Ref |
Get the path to the media directory. If it does not exist, it will be created. If we're {@link is_admin_page() on an admin page}, it adds status messages. param: boolean Create the directory, if it does not exist yet? return: mixed the path as string on success, false if the dir could not be created |
get_media_url() X-Ref |
Get the URL to the media folder return: string the URL |
set( $parname, $parvalue ) X-Ref |
Set param value param: string parameter name param: mixed parameter value return: boolean true, if a value has been set; false if it has not changed |
set_datecreated( $datecreated, $isYMDhour = false ) X-Ref |
Set date created. param: integer seconds since Unix Epoch. |
set_email( $email ) X-Ref |
Set email address of the user. If the email address has changed and we're configured to invalidate the user in this case, the user's account gets invalidated here. param: string email address to set for the User return: boolean true, if set; false if not changed |
set_Group( & $Group ) X-Ref |
Set new Group. param: Group the Group object to put the user into return: boolean true if set, false if not changed |
setGroup( & $Group ) X-Ref |
check_perm( $permname, $permlevel = 'any', $assert = false, $perm_target = NULL ) X-Ref |
Pas de description |
check_perm_blogowner( $blog_ID ) X-Ref |
Check if the user is the owner of the designated blog (whoch gives him a lot of permissions) param: integer return: boolean |
check_perm_catsusers( $permname, $permlevel, & $perm_target_cats ) X-Ref |
Check permission for this user on a set of specified categories This is not for direct use, please call {@link User::check_perm()} instead param: string Permission name, can be one of the following: param: string Permission level param: array Array of target cat IDs return: boolean 0 if permission denied |
check_perm_blogusers( $permname, $permlevel, $perm_target_blog, $Item = NULL ) X-Ref |
Check permission for this user on a specified blog This is not for direct use, please call {@link User::check_perm()} instead param: string Permission name, can be one of the following: param: string Permission level param: integer Permission target blog ID param: Item Item that we want to edit return: boolean 0 if permission denied |
dbinsert() X-Ref |
Insert object into DB based on previously recorded changes Triggers the plugin event AfterUserInsert. return: boolean true on success |
dbupdate() X-Ref |
Update the DB based on previously recorded changes. Triggers the plugin event AfterUserUpdate. return: boolean true on success |
dbdelete( & $Log ) X-Ref |
Delete user and dependencies from database Includes WAY TOO MANY requests because we try to be compatible with MySQL 3.23, bleh! param: Log Log object where output gets added (by reference). |
callback_optionsForIdMode( $value ) X-Ref |
Pas de description |
send_validate_email( $redirect_to_after = NULL ) X-Ref |
Send an email to the user with a link to validate/confirm his email address. If the email could get sent, it saves the used "request_id" into the user's Session. param: string URL, where to redirect the user after he clicked the validation link (gets saved in Session). return: boolean True, if the email could get sent; false if not |
level() X-Ref |
Template function: display user's level |
login( $format = 'htmlbody' ) X-Ref |
Template function: display user's login param: string Output format, see {@link format_to_output()} |
get_msgform_link( $form_url = NULL, $before = ' ', $after = ' ', $text = ') X-Ref |
Template helper function: Get a link to a message form for this user. param: string url of the message form param: string to display before link param: string to display after link param: string link text param: string link title param: string class name |
msgform_link( $form_url = NULL, $before = ' ', $after = ' ', $text = ') X-Ref |
Template function: display a link to a message form for this user param: string url of the message form param: string to display before link param: string to display after link param: string link text param: string link title param: string class name |
preferred_name( $format = 'htmlbody' ) X-Ref |
Template function: display user's preferred name param: string Output format, see {@link format_to_output()} |
url( $before = '', $after = '', $format = 'htmlbody' ) X-Ref |
Template function: display user's URL param: string string to display before the date (if changed) param: string string to display after the date (if changed) param: string Output format, see {@link format_to_output()} |
num_posts( $format = 'htmlbody' ) X-Ref |
Template function: display number of user's posts |
first_name( $format = 'htmlbody' ) X-Ref |
Template function: display first name of the user |
last_name( $format = 'htmlbody' ) X-Ref |
Template function: display last name of the user |
nick_name( $format = 'htmlbody' ) X-Ref |
Template function: display nickname of the user |
email( $format = 'htmlbody' ) X-Ref |
Template function: display email of the user |
icq( $format = 'htmlbody' ) X-Ref |
Template function: display ICQ of the user |
aim( $format = 'htmlbody' ) X-Ref |
Template function: display AIM of the user. NOTE: Replaces spaces with '+' ?!? |
yim( $format = 'htmlbody' ) X-Ref |
Template function: display Yahoo IM of the user |
msn( $format = 'htmlbody' ) X-Ref |
Template function: display MSN of the user |
Généré le : Thu Nov 29 23:58:50 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |