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



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


Type:   mixed


[ Top ]

$P_BIRTHDATE =

[line 49]


Type:   mixed


[ Top ]

$P_CITY =

[line 48]


Type:   mixed


[ Top ]

$P_EMAIL =

[line 43]


Type:   mixed


[ Top ]

$P_EMAIL_DISPLAY =

[line 44]


Type:   mixed


[ Top ]

$P_FIRSTNAME =

[line 46]


Type:   mixed


[ Top ]

$P_ID =

[line 42]


Type:   mixed


[ Top ]

$P_JOB =

[line 51]


Type:   mixed


[ Top ]

$P_LASTNAME =

[line 47]


Type:   mixed


[ Top ]

$P_LEISURES =

[line 50]


Type:   mixed


[ Top ]

$P_QUOTATION =

[line 53]


Type:   mixed


[ Top ]

$P_SIGNATURE =

[line 54]


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 =  "library/userfiles/users/avatars/"

[line 16]


Type:   mixed


[ Top ]

$VALIDITY =

[line 27]


Type:   mixed


[ Top ]



Class Methods


constructor __construct [line 58]

user __construct( )



Tags:

access:  public


[ Top ]

method AddUser [line 471]

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

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 changeWorkshopsNotification [line 257]

integer changeWorkshopsNotification( $user_id, $exceptions, object $sql_object)

user::changeWorkshopsNotification() Change workshops notification for a given user



Tags:

access:  public


Parameters:

object   $sql_object  
   $user_id  
   $exceptions  

[ Top ]

method CheckDataIntegrity [line 86]

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

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

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

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

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

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

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

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

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

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

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

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

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

void __call( $method, $arguments)



Tags:

access:  public


Parameters:

   $method  
   $arguments  

[ Top ]


Documentation generated on Thu, 03 May 2012 15:03:19 +0200 by phpDocumentor 1.4.1