File_Passwd_Unix::modUser()

File_Passwd_Unix::modUser() -- Modify user

Synopsis

mixed File_Passwd_Unix::modUser (string $user [, array $properties = array()])

Opis

You shouldn't modify the password of the user with this method, use File_Passwd_Unix::changePasswd() instead.

You should use this method only if the 'name map' is used, too.

Parametr

string $user

the user to modify

array $properties

an associative array of properties to modify

Zwracana wartość

Zwraca TRUE w przypadku powodzenia, PEAR_Error w przypadku niepowodzenia.

Tabela 39-1. Możliwe wartości PEAR_Error

Error CodeSummary
FILE_PASSWD_E_EXISTS_NOTuser doesn't exists
FILE_PASSWD_E_INVALID_CHARSany of the extra properties contains a colon

Zobacz

See File_Passwd_Unix::useMap()

See File_Passwd_Unix::changePasswd()

Uwagi

Ta funkcja nie może być wywołana statycznie.