summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
Diffstat (limited to 'program/include')
-rw-r--r--program/include/rcube_imap.php2
-rw-r--r--program/include/rcube_storage.php8
2 files changed, 10 insertions, 0 deletions
diff --git a/program/include/rcube_imap.php b/program/include/rcube_imap.php
index 81ad1859a..2be225636 100644
--- a/program/include/rcube_imap.php
+++ b/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/program/include/rcube_storage.php b/program/include/rcube_storage.php
index cef773c82..8123e9cee 100644
--- a/program/include/rcube_storage.php
+++ b/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