Alternc
latest
Alternc logiel libre pour l'hébergement
|
Account Api of AlternC, used by alternc-api package. More...
Public Member Functions | |
add ($options) | |
API Method from legacy class method admin->add_mem() More... | |
update ($options) | |
API Method from legacy class method admin->update_mem() More... | |
del ($options) | |
API Method from legacy class method admin->del_mem() More... | |
lock ($options) | |
API Method from legacy class method admin->lock_mem() More... | |
unlock ($options) | |
API Method from legacy class method admin->unlock_mem() More... | |
setAdmin ($options) | |
API Method from legacy class method admin->normal2su() More... | |
unsetAdmin ($options) | |
API Method from legacy class method admin->su2normal() More... | |
find ($options) | |
API Method from legacy class method admin->get_list() More... | |
Public Attributes | |
const | ERR_INVALID_ARGUMENT = 111201 |
const | ERR_ALTERNC_FUNCTION = 111202 |
const | ERR_NOT_FOUND = 111203 |
Protected Member Functions | |
alterncLegacyErrorManager () | |
return a proper Alternc_Api_Response from an error class and error string from AlternC legacy class More... | |
offsetAndCount ($options, $max) | |
ensure that offset & count are set properly from $options. More... | |
Protected Attributes | |
$admin | |
$cuid | |
$isAdmin | |
$db | |
Account Api of AlternC, used by alternc-api package.
Definition at line 6 of file Account.php.
Alternc_Api_Object_Account::add | ( | $options | ) |
API Method from legacy class method admin->add_mem()
$options | a hash with parameters transmitted to legacy call mandatory parameters: login, pass, nom, prenom, mail, non-mandatory: canpass, type, duration, notes, force, create_dom, db_server_id |
Definition at line 14 of file Account.php.
References $key, $uid, $value, and Alternc_Api_Legacyobject\alterncLegacyErrorManager().
|
protectedinherited |
return a proper Alternc_Api_Response from an error class and error string from AlternC legacy class
Definition at line 38 of file Legacyobject.php.
References $err.
Referenced by Alternc_Api_Object_Mail\account(), add(), Alternc_Api_Object_Domain\add(), Alternc_Api_Object_Ftp\add(), Alternc_Api_Object_Mysql\add(), Alternc_Api_Object_Ssl\aliasAdd(), Alternc_Api_Object_Ssl\aliasDel(), Alternc_Api_Object_Policy\check(), Alternc_Api_Object_Mail\create(), del(), Alternc_Api_Object_Domain\del(), Alternc_Api_Object_Ftp\del(), Alternc_Api_Object_Mysql\del(), Alternc_Api_Object_Mail\delete(), Alternc_Api_Object_Mail\disable(), Alternc_Api_Object_Mail\enable(), Alternc_Api_Object_Ssl\finalize(), find(), Alternc_Api_Object_Ftp\find(), Alternc_Api_Object_Mysql\find(), Alternc_Api_Object_Policy\find(), Alternc_Api_Object_Domain\get(), Alternc_Api_Object_Mail\get(), Alternc_Api_Object_Subdomain\get(), Alternc_Api_Object_Mail\getAll(), Alternc_Api_Object_Ssl\getCertificate(), Alternc_Api_Object_Ssl\importCert(), Alternc_Api_Object_Mail\isAvailable(), Alternc_Api_Object_Ftp\isFtp(), Alternc_Api_Object_Mail\listDomains(), lock(), Alternc_Api_Object_Mysql\lock(), Alternc_Api_Object_Ssl\newCsr(), Alternc_Api_Object_Mail\passwd(), Alternc_Api_Object_Subdomain\set(), setAdmin(), Alternc_Api_Object_Mysql\setAdmin(), Alternc_Api_Object_Ssl\share(), Alternc_Api_Object_Mail\undelete(), unlock(), Alternc_Api_Object_Mysql\unlock(), unsetAdmin(), Alternc_Api_Object_Mysql\unsetAdmin(), update(), Alternc_Api_Object_Domain\update(), Alternc_Api_Object_Ftp\update(), Alternc_Api_Object_Mail\update(), Alternc_Api_Object_Mysql\update(), and Alternc_Api_Object_Policy\update().
Alternc_Api_Object_Account::del | ( | $options | ) |
API Method from legacy class method admin->del_mem()
$options | a hash with parameters transmitted to legacy call mandatory parameters: uid |
Definition at line 82 of file Account.php.
References Alternc_Api_Legacyobject\alterncLegacyErrorManager().
Alternc_Api_Object_Account::find | ( | $options | ) |
API Method from legacy class method admin->get_list()
$options | a hash with parameters transmitted to legacy call non-mandatory parameters: ONE OF: uid(strict), login(like %%), domain(like %%), creator(strict, by uid), Any of: offset(int=0), count(int=+inf) |
Definition at line 169 of file Account.php.
References Alternc_Api_Legacyobject\alterncLegacyErrorManager(), and Alternc_Api_Legacyobject\offsetAndCount().
Alternc_Api_Object_Account::lock | ( | $options | ) |
API Method from legacy class method admin->lock_mem()
$options | a hash with parameters transmitted to legacy call mandatory parameters: uid |
Definition at line 99 of file Account.php.
References Alternc_Api_Legacyobject\alterncLegacyErrorManager().
|
protectedinherited |
ensure that offset & count are set properly from $options.
Definition at line 45 of file Legacyobject.php.
Referenced by find(), Alternc_Api_Object_Domain\find(), Alternc_Api_Object_Ftp\find(), and Alternc_Api_Object_Mysql\find().
Alternc_Api_Object_Account::setAdmin | ( | $options | ) |
API Method from legacy class method admin->normal2su()
$options | a hash with parameters transmitted to legacy call mandatory parameters: uid |
Definition at line 133 of file Account.php.
References Alternc_Api_Legacyobject\alterncLegacyErrorManager().
Alternc_Api_Object_Account::unlock | ( | $options | ) |
API Method from legacy class method admin->unlock_mem()
$options | a hash with parameters transmitted to legacy call mandatory parameters: uid |
Definition at line 116 of file Account.php.
References Alternc_Api_Legacyobject\alterncLegacyErrorManager().
Alternc_Api_Object_Account::unsetAdmin | ( | $options | ) |
API Method from legacy class method admin->su2normal()
$options | a hash with parameters transmitted to legacy call mandatory parameters: uid |
Definition at line 150 of file Account.php.
References Alternc_Api_Legacyobject\alterncLegacyErrorManager().
Alternc_Api_Object_Account::update | ( | $options | ) |
API Method from legacy class method admin->update_mem()
$options | a hash with parameters transmitted to legacy call mandatory parameters: nom, prenom, mail, non-mandatory: pass, canpass, type, duration, notes, force, create_dom, db_server_id |
Definition at line 51 of file Account.php.
References $key, $uid, and Alternc_Api_Legacyobject\alterncLegacyErrorManager().
|
protectedinherited |
Definition at line 11 of file Legacyobject.php.
Referenced by Alternc_Api_Legacyobject\__construct().
|
protectedinherited |
Definition at line 12 of file Legacyobject.php.
Referenced by Alternc_Api_Legacyobject\__construct(), Alternc_Api_Object_Domain\find(), Alternc_Api_Object_Domain\get(), Alternc_Api_Object_Subdomain\get(), Alternc_Api_Object_Mail\listDomains(), Alternc_Api_Object_Mail\login(), and Alternc_Api_Object_Subdomain\set().
|
protectedinherited |
Definition at line 14 of file Legacyobject.php.
|
protectedinherited |
Definition at line 13 of file Legacyobject.php.
Referenced by Alternc_Api_Legacyobject\__construct().
|
inherited |
Definition at line 17 of file Legacyobject.php.
|
inherited |
Definition at line 16 of file Legacyobject.php.
|
inherited |
Definition at line 18 of file Legacyobject.php.