summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2012-03-05 14:20:07 +0000
committeralecpl <alec@alec.pl>2012-03-05 14:20:07 +0000
commit8eae72a53cf4e359643a75c03d4317bd9afbac77 (patch)
treeb6623799fbcb9120e5d0042332a7fb812db9aff6
parent6205a30c81eab281d792edf863b6ba7b0e8804b8 (diff)
- Add check_connection() to storage abstract class
-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