A RoundCube API via direct database manipulation.
| category | OSS |
|---|---|
| package | OSS_API |
| copyright | Copyright (c) 2007 - 2013, Open Source Solutions Limited, Dublin, Ireland |
| license | New BSD License |
__construct(array $dbparams) : void
array
addIdentity(array $user, string $email, array $identity) : bool
$identity array sturcture: [ 'replay_to' => 'replay_to', 'bcc' => 'bcc', 'name' => 'name', 'organization' => 'organization', 'signature' => 'signature', 'html_signature' => 'html_signature' ]
| access | public |
|---|
arrayUser array loaded form OSS_API_RoundCube
stringEmail address
array
booladdUser(string $username, string $mail_host, array $preferences, array $identity) : bool
NOTICE: If $identity array is passed it must contain $identity['mail'].
| access | public |
|---|---|
| see | \global\addIdentity() |
stringUsers username
stringIMAP addres where email is stored
arrayUsers preferences such as davical details.
arrayUsers identity details.
\Identity |
mail is not set. |
|---|
boolcreateIV(int $size) : string
Based on source code from the program/include/rcmail.php rcmail::create_iv() function.
intThe size of the initialisation vector
stringThe initialisation vectordecrypt(string $cipher, string $key, string $base64) : string
Based on source code from the program/include/rcmail.php rcmail::decrypt() function.
stringThe ciphertext string to decrypt
stringThe encryption key
stringIndicates if the ciphertext is a base64 encoded string
stringThe cleartextencrypt(string $clear, string $key, string $base64) : string
Based on source code from the program/include/rcmail.php rcmail::encrypt() function.
stringThe cleartext string to encrypt
stringThe encryption key
stringReturn the ciphertext as a base64 encoded string
stringThe ciphertextgetAllUsers() : array
| access | public |
|---|
arrayAll users registered in the databasegetUser(\strint $username) : array | bool
| access | public |
|---|
\strintUsers username
arraybool
setLanguage(string $lang) : \OSS_API_RoundCube
By default is en_GB
| fluent | This method is part of a fluent interface and will return the same instance |
|---|
stringUsers preference language
\OSS_API_RoundCubefor fluent interfacesetStandard(int $standard) : \OSS_API_RoundCube
By default is 1
| fluent | This method is part of a fluent interface and will return the same instance |
|---|
intIdentity standard
\OSS_API_RoundCubefor fluent interfaceupdateIdentity(array $user, array $identity) : bool
$identity array sturcture: [ 'email' => email, 'replay_to' => 'replay_to', 'bcc' => 'bcc', 'name' => 'name', 'organization' => 'organization', 'signature' => 'signature', 'html_signature' => 'html_signature' ]
| access | public |
|---|
arrayUser array loaded form OSS_API_RoundCube
array
boolupdateUser(string $username, string $mail_host, array $preferences, array $identity) : bool
| access | public |
|---|
stringUsers username
stringIMAP addres where email is stored
arrayUsers preferences such as davical details.
arrayUsers identity details.
bool$_language : string
$_standard : int