linea21-core
[ class tree: linea21-core ] [ index: linea21-core ] [ all elements ]

Class: user

Source Location: /class/class.user.php

Class Overview




Author(s):

Version:

  • $id SVN

Variables

Methods



Class Details

[line 12]


Tags:

author:  linea21 <info@linea21.com>
version:  $id SVN
access:  public
license:  User Management


[ Top ]


Class Variables

$CATEGORY =

[line 23]


Type:   mixed


[ Top ]

$COMMUNITY =  USER_COMMUNITY

[line 22]


Type:   mixed


[ Top ]

$DATE_CREA =

[line 26]


Type:   mixed


[ Top ]

$ID =

[line 19]


Type:   mixed


[ Top ]

$LAST_MODIFY =

[line 28]


Type:   mixed


[ Top ]

$LOGIN =

[line 20]


Type:   mixed


[ Top ]

$NB_USERS =  30

[line 17]


Type:   mixed


[ Top ]

$PASSWORD =

[line 21]


Type:   mixed


[ Top ]

$PROFILE =

[line 25]


Type:   mixed


[ Top ]

$P_AVATAR =

[line 50]


Type:   mixed


[ Top ]

$P_BIRTHDATE =

[line 47]


Type:   mixed


[ Top ]

$P_CITY =

[line 46]


Type:   mixed


[ Top ]

$P_EMAIL =

[line 43]


Type:   mixed


[ Top ]

$P_EMAIL_DISPLAY =

[line 44]


Type:   mixed


[ Top ]

$P_ID =

[line 42]


Type:   mixed


[ Top ]

$P_JOB =

[line 49]


Type:   mixed


[ Top ]

$P_LEISURES =

[line 48]


Type:   mixed


[ Top ]

$P_QUOTATION =

[line 51]


Type:   mixed


[ Top ]

$P_SIGNATURE =

[line 52]


Type:   mixed


[ Top ]

$RIGHT =

[line 24]


Type:   mixed


[ Top ]

$R_CATEGORY_USER =

[line 40]


Type:   mixed


[ Top ]

$R_DASHBOARD =

[line 31]


Type:   mixed


[ Top ]

$R_ID =

[line 30]


Type:   mixed


[ Top ]

$R_LEVEL =

[line 39]


Type:   mixed


[ Top ]

$R_NEWS =

[line 35]


Type:   mixed


[ Top ]

$R_PROJECT =

[line 33]


Type:   mixed


[ Top ]

$R_PUBLICATION =

[line 34]


Type:   mixed


[ Top ]

$R_SCALE =

[line 38]


Type:   mixed


[ Top ]

$R_THEME =

[line 37]


Type:   mixed


[ Top ]

$R_WORKSHOP =

[line 32]


Type:   mixed


[ Top ]

$R_YELLOWPAGES =

[line 36]


Type:   mixed


[ Top ]

$TDB_USER =  T_USER

[line 15]


Type:   mixed


[ Top ]

$UPLOAD_MAX_MO =  10240

[line 18]


Type:   mixed


[ Top ]

$URI_INPUT =  "user/avatar/"

[line 16]


Type:   mixed


[ Top ]

$VALIDITY =

[line 27]


Type:   mixed


[ Top ]



Class Methods


method AddUser [line 285]

integer AddUser( array $table_user, array $table_right, object $sql_object)

user::AddUser() Ajout d'un utilisateur



Tags:

return:  renvoie un message d'erreur ou un numerique id de l'insertion
access:  public


Parameters:

array   $table_user   contient les composants de l'utilisateur
array   $table_right   contient les droits attribués au nouvel utilisateur
object   $sql_object  

[ Top ]

method CheckDataIntegrity [line 63]

boolean CheckDataIntegrity( array $table, [object $sql_object = null])

user::CheckDataIntegrity() Vérification intégrité des données



Tags:

return:  si vrai renvoie true sinon message d'erreurs (string)
access:  public


Parameters:

array   $table   : contient les composants d'un user
object   $sql_object  

[ Top ]

method checkPasswordValidity [line 108]

bool checkPasswordValidity( string $password, [string $pass2 = -1])

user::checkPasswordValidity() validation d'un password



Tags:

return:  si valide true sinon message d'erreur (string)


Parameters:

string   $password   password rentre par l'utilisateur
string   $pass2   (option)

[ Top ]

method DeleteUser [line 311]

bool DeleteUser( int $ID, object $sql_object)

user::DeleteUser() suppression d'un utilisateur



Tags:

access:  public


Parameters:

int   $ID   identifiant de l'utilisateur
object   $sql_object  

[ Top ]

method GetNewPassword [line 209]

string GetNewPassword( [int $length = PASSWD_LENGTH])

user::GetNewPassword() creation aleatoire d'un password



Tags:

access:  public


Parameters:

int   $length   taille du password

[ Top ]

method InitUserRight [line 227]

array InitUserRight( [string $type = 'SIMPLE_USER'])

user::InitUserRight() formatage du tableau de droit suivant profil prédeterminé



Tags:

return:  : tableau des droits de l'utilisateur
access:  public


Parameters:

string   $type   niveau utilisateur : SIMPLE_USER ou ADMIN_USER

[ Top ]

method ModifyProfile [line 333]

bool ModifyProfile( $ID, array $table_profile, object $sql_object, int $id)

user::ModifyProfile() modification d'un profil utilisateur



Tags:

access:  public


Parameters:

int   $id   identifiant d'un profil
object   $sql_object  
array   $table_profile   contient les composants d'un profil
   $ID  

[ Top ]

method ModifyRight [line 377]

bool ModifyRight( int $ID, array $table_right, object $sql_object)

user::ModifyRight() modification des droits d'un utilisateur



Tags:

access:  public


Parameters:

int   $ID   identifiant de l'utilisateur
object   $sql_object  
array   $table_right   contient un tableau associatif de droit

[ Top ]

method UpdateUserPassword [line 262]

bool UpdateUserPassword( int $ID, string $pass, object $sql_object)

user::UpdateUserPassword() changement de password (mise à jour) dans la bdd



Tags:

access:  public


Parameters:

int   $ID   identifiant utilisateur
string   $pass   nouveau password non crypté
object   $sql_object  

[ Top ]


Documentation generated on Fri, 16 Oct 2009 09:30:35 +0200 by phpDocumentor 1.4.1