diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2012-03-05 14:20:07 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2012-03-05 14:20:07 +0000 |
| commit | 8a8cd8df1e34e859b37ca47f7bef68fbb4aefca6 (patch) | |
| tree | e9f4e51857986431481edfeccfee8b60585b3162 | |
| parent | 16e3024d263aacca8e3e0e8c7b71df9d103e524e (diff) | |
- Add check_connection() to storage abstract class
git-svn-id: https://svn.roundcube.net/trunk@5962 208e9e7b-5314-0410-a742-e7e81cd9613c
| -rw-r--r-- | roundcubemail/program/include/rcube_imap.php | 2 | ||||
| -rw-r--r-- | roundcubemail/program/include/rcube_storage.php | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/roundcubemail/program/include/rcube_imap.php b/roundcubemail/program/include/rcube_imap.php index 81ad1859a..2be225636 100644 --- a/roundcubemail/program/include/rcube_imap.php +++ b/roundcubemail/program/include/rcube_imap.php @@ -212,6 +212,8 @@ class rcube_imap extends rcube_storage /** * Check connection state, connect if not connected. + * + * @return bool Connection state. */ public function check_connection() { diff --git a/roundcubemail/program/include/rcube_storage.php b/roundcubemail/program/include/rcube_storage.php index cef773c82..8123e9cee 100644 --- a/roundcubemail/program/include/rcube_storage.php +++ b/roundcubemail/program/include/rcube_storage.php @@ -109,6 +109,14 @@ abstract class rcube_storage /** + * Check connection state, connect if not connected. + * + * @return bool Connection state. + */ + abstract function check_connection(); + + + /** * Returns code of last error * * @return int Error code |
