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
filesource:  Source Code for this file
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 ]

$dispatcher =  null

[line 54]



Tags:

access:  protected

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 =  20480

[line 18]


Type:   mixed


[ Top ]

$URI_INPUT =  "user/avatar/"

[line 16]


Type:   mixed


[ Top ]

$VALIDITY =

[line 27]


Type:   mixed


[ Top ]



Class Methods


constructor __construct [line 56]

user __construct( )



Tags:

access:  public


[ Top ]

method AddUser [line 438]

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 AddWorkshops [line 278]

integer AddWorkshops( int $user_id, array $workgroups, string $user_right, object $sql_object)

user::AddWorkshops() Ajout d'un utilisateur à un ou plusieurs workshops



Tags:

access:  public


Parameters:

int   $user_id   identifiant du workshop
array   $workgroups   workgroups ID
string   $user_right   droit confié a l'utilisateur sur le workshop
object   $sql_object  

[ Top ]

method CheckDataIntegrity [line 84]

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 129]

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 471]

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 DeleteWorkshops [line 255]

integer DeleteWorkshops( $user_id, $user_right, object $sql_object)

user::DeleteWorkshops() Remove all workshops for a given user



Tags:

access:  public


Parameters:

object   $sql_object  
   $user_id  
   $user_right  

[ Top ]

method generateNewPasskey [line 327]

string generateNewPasskey( string $user_id, object $sql_object)

user::generateNewPasskey() creation aleatoire d'un passkey



Tags:

access:  public


Parameters:

string   $user_id  
object   $sql_object  

[ Top ]

method GetNewPassword [line 362]

string GetNewPassword( [int $length = PASSWD_LENGTH])

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



Tags:

access:  public


Parameters:

int   $length   taille du password

[ Top ]

method GetUserWorkshops [line 233]

integer GetUserWorkshops( int $user_id, object $sql_object, array $workgroups, string $user_right)

user::GetUserWorkshops() Ajout d'un utilisateur à un ou plusieurs workshops



Tags:

access:  public


Parameters:

int   $user_id   identifiant du workshop
array   $workgroups   workgroups ID
string   $user_right   droit confié a l'utilisateur sur le workshop
object   $sql_object  

[ Top ]

method InitUserRight [line 380]

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 ModifiyWorkshops [line 305]

integer ModifiyWorkshops( int $user_id, array $workgroups, string $user_right, object $sql_object)

user::ModifiyWorkshops() Update workgroups for a given user



Tags:

access:  public


Parameters:

int   $user_id   identifiant du workshop
array   $workgroups   workgroups to add
string   $user_right   droit confié a l'utilisateur sur le workshop
object   $sql_object  

[ Top ]

method ModifyProfile [line 494]

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 538]

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 resetPasskey [line 346]

string resetPasskey( string $user_id, object $sql_object)

user::resetPasskey() creation aleatoire d'un passkey



Tags:

access:  public


Parameters:

string   $user_id  
object   $sql_object  

[ Top ]

method UpdateUserPassword [line 415]

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 ]

method __call [line 61]

void __call( $method, $arguments)



Tags:

access:  public


Parameters:

   $method  
   $arguments  

[ Top ]


Documentation generated on Fri, 01 Apr 2011 09:29:35 +0200 by phpDocumentor 1.4.1