bigace.classes.user
[ class tree: bigace.classes.user ] [ index: bigace.classes.user ] [ all elements ]

Class: UserAdminService

Source Location: /classes/user/UserAdminService.php

Class Overview


This Service holds method for handling BIGACE User.


Methods


Inherited Constants

Inherited Variables

Inherited Methods


Class Details

[line 36]
This Service holds method for handling BIGACE User.



[ Top ]


Class Methods


method activateUser [line 199]

void activateUser( mixed $id)



[ Top ]

method changePassword [line 208]

void changePassword( mixed $id, mixed $newpass)



[ Top ]

method changeUser [line 44]

void changeUser( mixed $data)

Change User settings.

Pass an array with these values: "name", "lang", "pass", "active", "group_id", "id". all except "id" are optional




[ Top ]

method checkIfUsernameExists [line 176]

boolean checkIfUsernameExists( String $name)

Checks if the given Username exists.



Tags:

return:  true if Username allready exists, else false


Parameters:

String   $name   the name that you want to test about its existence

[ Top ]

method createUser [line 113]

int createUser( String $username, String $password, [int $language = '2'], [boolean $aktiv = false], [mixed $group_id = 0])

This creates a User within BIGACE.



Tags:

return:  the ID for the new generated User


Parameters:

String   $username   the Username
String   $password   the password (will be crypted while saving to DB)
int   $language   the language ID
boolean   $aktiv   A boolean representing rhe Active Status for this User within BIGACE

[ Top ]

method deactivateUser [line 190]

void deactivateUser( mixed $id)



[ Top ]

method deleteUser [line 145]

mixed deleteUser( int $id)

Deletes the given User.

This will not work for the BIGACE and ANONYMOUS USER! We do not have to delete any right, because each user has a group and the rights are group dependend!




Tags:

return:  the result of this deletion process


Parameters:

int   $id   the User ID for the User that will be deleted

[ Top ]


Documentation generated on Tue, 11 Oct 2005 23:02:21 +0200 by phpDocumentor 1.3.0RC2