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 |
---|
array
User array loaded form OSS_API_RoundCube
string
Email address
array
bool
addUser(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() |
string
Users username
string
IMAP addres where email is stored
array
Users preferences such as davical details.
array
Users identity details.
\Identity |
mail is not set. |
---|
bool
createIV(int $size) : string
Based on source code from the program/include/rcmail.php rcmail::create_iv() function.
int
The size of the initialisation vector
string
The initialisation vectordecrypt(string $cipher, string $key, string $base64) : string
Based on source code from the program/include/rcmail.php rcmail::decrypt() function.
string
The ciphertext string to decrypt
string
The encryption key
string
Indicates if the ciphertext is a base64 encoded string
string
The cleartextencrypt(string $clear, string $key, string $base64) : string
Based on source code from the program/include/rcmail.php rcmail::encrypt() function.
string
The cleartext string to encrypt
string
The encryption key
string
Return the ciphertext as a base64 encoded string
string
The ciphertextgetAllUsers() : array
access | public |
---|
array
All users registered in the databasegetUser(\strint $username) : array | bool
access | public |
---|
\strint
Users username
array
bool
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 |
---|
string
Users preference language
\OSS_API_RoundCube
for 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 |
---|
int
Identity standard
\OSS_API_RoundCube
for 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 |
---|
array
User array loaded form OSS_API_RoundCube
array
bool
updateUser(string $username, string $mail_host, array $preferences, array $identity) : bool
access | public |
---|
string
Users username
string
IMAP addres where email is stored
array
Users preferences such as davical details.
array
Users identity details.
bool
$_language : string
$_standard : int