Alternc
latest
Alternc logiel libre pour l'hébergement
|
Domain Api of AlternC, used by alternc-api package. More...
Public Member Functions | |
__construct ($service) | |
find ($options) | |
API Method from legacy class method dom->get_domain_list() More... | |
get ($options) | |
API Method from legacy class method dom->get_domain_all($dom) More... | |
add ($options) | |
API Method from legacy class method dom->add_domain() More... | |
update ($options) | |
API Method from legacy class method dom->edit_domain() More... | |
del ($options) | |
API Method from legacy class method dom->del_domain() 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 | |
$dom | |
$admin | |
$cuid | |
$isAdmin | |
$db | |
Domain Api of AlternC, used by alternc-api package.
Definition at line 6 of file Domain.php.
Alternc_Api_Object_Domain::__construct | ( | $service | ) |
Reimplemented from Alternc_Api_Legacyobject.
Definition at line 10 of file Domain.php.
References $dom.
Alternc_Api_Object_Domain::add | ( | $options | ) |
API Method from legacy class method dom->add_domain()
$options | a hash with parameters transmitted to legacy call mandatory parameters: domain(str), dns(bool) non-mandatory: noerase(bool, only admins), force(bool, only admins), isslave(bool), slavedom(str) |
Definition at line 92 of file Domain.php.
References $key, $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(), Alternc_Api_Object_Account\add(), 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(), Alternc_Api_Object_Account\del(), 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(), Alternc_Api_Object_Account\find(), Alternc_Api_Object_Ftp\find(), Alternc_Api_Object_Mysql\find(), Alternc_Api_Object_Policy\find(), 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(), Alternc_Api_Object_Account\lock(), Alternc_Api_Object_Mysql\lock(), Alternc_Api_Object_Ssl\newCsr(), Alternc_Api_Object_Mail\passwd(), Alternc_Api_Object_Subdomain\set(), Alternc_Api_Object_Account\setAdmin(), Alternc_Api_Object_Mysql\setAdmin(), Alternc_Api_Object_Ssl\share(), Alternc_Api_Object_Mail\undelete(), Alternc_Api_Object_Account\unlock(), Alternc_Api_Object_Mysql\unlock(), Alternc_Api_Object_Account\unsetAdmin(), Alternc_Api_Object_Mysql\unsetAdmin(), Alternc_Api_Object_Account\update(), 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_Domain::del | ( | $options | ) |
API Method from legacy class method dom->del_domain()
$options | a hash with parameters transmitted to legacy call mandatory parameters: domain |
Definition at line 160 of file Domain.php.
References Alternc_Api_Legacyobject\alterncLegacyErrorManager().
Alternc_Api_Object_Domain::find | ( | $options | ) |
API Method from legacy class method dom->get_domain_list()
$options | a hash with parameters transmitted to legacy call may be "uid" to only return domains for a specific user-id (if you are not admin, this WILL only list YOUR domains anyway) may be "offset" and/or "count" to do paging. |
Definition at line 24 of file Domain.php.
References Alternc_Api_Legacyobject\$cuid, $uid, and Alternc_Api_Legacyobject\offsetAndCount().
Alternc_Api_Object_Domain::get | ( | $options | ) |
API Method from legacy class method dom->get_domain_all($dom)
$options | a hash with parameters transmitted to legacy call musr be the domain name $dom |
Definition at line 59 of file Domain.php.
References Alternc_Api_Legacyobject\$cuid, $key, and Alternc_Api_Legacyobject\alterncLegacyErrorManager().
|
protectedinherited |
ensure that offset & count are set properly from $options.
Definition at line 45 of file Legacyobject.php.
Referenced by Alternc_Api_Object_Account\find(), find(), Alternc_Api_Object_Ftp\find(), and Alternc_Api_Object_Mysql\find().
Alternc_Api_Object_Domain::update | ( | $options | ) |
API Method from legacy class method dom->edit_domain()
$options | a hash with parameters transmitted to legacy call mandatory parameters: domain(str), dns(bool) non-mandatory: noerase(bool, only admins), force(bool, only admins), isslave(bool), slavedom(str) |
Definition at line 127 of file Domain.php.
References $key, $value, 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(), find(), 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.
|
protected |
Definition at line 8 of file Domain.php.
Referenced by __construct().
|
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.