Alternc
latest
Alternc logiel libre pour l'hébergement
|
Domain Api of AlternC, used by alternc-api package. More...
Public Member Functions | |
__construct ($service) | |
listDomains ($options) | |
API Method from legacy class method mail->enum_domains() More... | |
isAvailable ($options) | |
API Method from legacy class method mail->available() More... | |
getAll ($options) | |
API Method from legacy class method $mail->enum_domain_mails ($dom_id = null, $search="", $offset=0, $count=30, $show_systemmails=false) More... | |
create ($options) | |
API Method from legacy class method $mail->create ($dom_id, $mail,$type="",$dontcheck=false){. More... | |
get ($options) | |
API Method from legacy class method $mail->get_details($mail_id) More... | |
account ($options) | |
API Method from legacy class method $mail->get_account_by_mail_id($mail_id) More... | |
delete ($options) | |
API Method from legacy class method $mail->delete($mail_id) More... | |
undelete ($options) | |
API Method from legacy class method $mail->undelete($mail_id) More... | |
passwd ($options) | |
API Method from legacy class method $mail->delete($mail_id) More... | |
enable ($options) | |
API Method from legacy class method $mail->enable($mail_id) More... | |
disable ($options) | |
API Method from legacy class method $mail->disable($mail_id) More... | |
update ($options) | |
API Method from legacy class method $mail-> set_details ($mail_id, $islocal, $quotamb, $recipients,$delivery="dovecot",$dontcheck=false) More... | |
login ($options) | |
API Method for email authentication. More... | |
check_password ($password, $hash) | |
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 | |
Alternc_Api_Object_Mail::__construct | ( | $service | ) |
Reimplemented from Alternc_Api_Legacyobject.
Definition at line 10 of file Mail.php.
References $mail.
Alternc_Api_Object_Mail::account | ( | $options | ) |
API Method from legacy class method $mail->get_account_by_mail_id($mail_id)
$options | a hash with parameters transmitted to legacy call mandatory parameters: mail_id |
Definition at line 138 of file Mail.php.
References $key, 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 account(), Alternc_Api_Object_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(), create(), Alternc_Api_Object_Account\del(), Alternc_Api_Object_Domain\del(), Alternc_Api_Object_Ftp\del(), Alternc_Api_Object_Mysql\del(), delete(), disable(), 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(), Alternc_Api_Object_Domain\get(), get(), Alternc_Api_Object_Subdomain\get(), getAll(), Alternc_Api_Object_Ssl\getCertificate(), Alternc_Api_Object_Ssl\importCert(), isAvailable(), Alternc_Api_Object_Ftp\isFtp(), listDomains(), Alternc_Api_Object_Account\lock(), Alternc_Api_Object_Mysql\lock(), Alternc_Api_Object_Ssl\newCsr(), passwd(), Alternc_Api_Object_Subdomain\set(), Alternc_Api_Object_Account\setAdmin(), Alternc_Api_Object_Mysql\setAdmin(), Alternc_Api_Object_Ssl\share(), 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(), Alternc_Api_Object_Domain\update(), Alternc_Api_Object_Ftp\update(), update(), Alternc_Api_Object_Mysql\update(), and Alternc_Api_Object_Policy\update().
Alternc_Api_Object_Mail::check_password | ( | $password, | |
$hash | |||
) |
Alternc_Api_Object_Mail::create | ( | $options | ) |
API Method from legacy class method $mail->create ($dom_id, $mail,$type="",$dontcheck=false){.
$options | a hash with parameters transmitted to legacy call mandatory parameters: non-mandatory: |
Definition at line 84 of file Mail.php.
References $key, $value, and Alternc_Api_Legacyobject\alterncLegacyErrorManager().
Alternc_Api_Object_Mail::delete | ( | $options | ) |
API Method from legacy class method $mail->delete($mail_id)
$options | a hash with parameters transmitted to legacy call mandatory parameters: mail_id |
Definition at line 162 of file Mail.php.
References $key, and Alternc_Api_Legacyobject\alterncLegacyErrorManager().
Alternc_Api_Object_Mail::disable | ( | $options | ) |
API Method from legacy class method $mail->disable($mail_id)
$options | a hash with parameters transmitted to legacy call mandatory parameters: mail_id |
Definition at line 258 of file Mail.php.
References $key, and Alternc_Api_Legacyobject\alterncLegacyErrorManager().
Alternc_Api_Object_Mail::enable | ( | $options | ) |
API Method from legacy class method $mail->enable($mail_id)
$options | a hash with parameters transmitted to legacy call mandatory parameters: mail_id |
Definition at line 234 of file Mail.php.
References $key, and Alternc_Api_Legacyobject\alterncLegacyErrorManager().
Alternc_Api_Object_Mail::get | ( | $options | ) |
API Method from legacy class method $mail->get_details($mail_id)
$options | a hash with parameters transmitted to legacy call mandatory parameters: mail_id |
Definition at line 114 of file Mail.php.
References $key, and Alternc_Api_Legacyobject\alterncLegacyErrorManager().
Alternc_Api_Object_Mail::getAll | ( | $options | ) |
API Method from legacy class method $mail->enum_domain_mails ($dom_id = null, $search="", $offset=0, $count=30, $show_systemmails=false)
$options | a hash with parameters transmitted to legacy call mandatory parameters: non-mandatory: |
Definition at line 62 of file Mail.php.
References $key, $value, and Alternc_Api_Legacyobject\alterncLegacyErrorManager().
Alternc_Api_Object_Mail::isAvailable | ( | $options | ) |
API Method from legacy class method mail->available()
$options | a hash with parameters transmitted to legacy call mandatory parameters: mail(str) |
Definition at line 43 of file Mail.php.
References Alternc_Api_Legacyobject\alterncLegacyErrorManager().
Alternc_Api_Object_Mail::listDomains | ( | $options | ) |
API Method from legacy class method mail->enum_domains()
$options | a hash with parameters transmitted to legacy call |
Definition at line 22 of file Mail.php.
References Alternc_Api_Legacyobject\$cuid, $uid, and Alternc_Api_Legacyobject\alterncLegacyErrorManager().
Alternc_Api_Object_Mail::login | ( | $options | ) |
API Method for email authentication.
$options | a hash with email and password parameters. |
Definition at line 315 of file Mail.php.
References Alternc_Api_Legacyobject\$cuid, $domain, $uid, and check_password().
|
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(), Alternc_Api_Object_Domain\find(), Alternc_Api_Object_Ftp\find(), and Alternc_Api_Object_Mysql\find().
Alternc_Api_Object_Mail::passwd | ( | $options | ) |
API Method from legacy class method $mail->delete($mail_id)
$options | a hash with parameters transmitted to legacy call mandatory parameters: mail_id, password |
Definition at line 210 of file Mail.php.
References $key, and Alternc_Api_Legacyobject\alterncLegacyErrorManager().
Alternc_Api_Object_Mail::undelete | ( | $options | ) |
API Method from legacy class method $mail->undelete($mail_id)
$options | a hash with parameters transmitted to legacy call mandatory parameters: mail_id |
Definition at line 186 of file Mail.php.
References $key, and Alternc_Api_Legacyobject\alterncLegacyErrorManager().
Alternc_Api_Object_Mail::update | ( | $options | ) |
API Method from legacy class method $mail-> set_details ($mail_id, $islocal, $quotamb, $recipients,$delivery="dovecot",$dontcheck=false)
$options | a hash with parameters transmitted to legacy call mandatory parameters: non-mandatory: |
Definition at line 284 of file Mail.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(), Alternc_Api_Object_Domain\find(), Alternc_Api_Object_Domain\get(), Alternc_Api_Object_Subdomain\get(), listDomains(), 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().
|
protected |
Definition at line 8 of file Mail.php.
Referenced by __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.