summaryrefslogtreecommitdiff
path: root/program/lib
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2014-03-06 13:17:52 +0100
committerThomas Bruederli <thomas@roundcube.net>2014-03-06 13:17:52 +0100
commit881d6b037507b9d01b267dd600f8977ac361100c (patch)
tree5a4b87d8c72691c4ba7183898c5ac6d9a6d3adc7 /program/lib
parente3773d46cb4f06aaab2747db98765edd6d871524 (diff)
Revert "Implement ArrayAccess interface for conveniently accessing rcube_result_set as array"
This reverts commit a7d68eaf1a0df1d954b4d6623ff0419a93739cd2.
Diffstat (limited to 'program/lib')
-rw-r--r--program/lib/Roundcube/rcube_result_set.php30
1 files changed, 1 insertions, 29 deletions
diff --git a/program/lib/Roundcube/rcube_result_set.php b/program/lib/Roundcube/rcube_result_set.php
index 82502ce5f..a4b070e28 100644
--- a/program/lib/Roundcube/rcube_result_set.php
+++ b/program/lib/Roundcube/rcube_result_set.php
@@ -25,7 +25,7 @@
* @package Framework
* @subpackage Addressbook
*/
-class rcube_result_set implements Iterator, ArrayAccess
+class rcube_result_set implements Iterator
{
public $count = 0;
public $first = 0;
@@ -61,34 +61,6 @@ class rcube_result_set implements Iterator, ArrayAccess
$this->current = $i;
}
- /*** Implement PHP ArrayAccess interface ***/
-
- public function offsetSet($offset, $value)
- {
- if (is_null($offset)) {
- $offset = count($this->records);
- $this->records[] = $value;
- }
- else {
- $this->records[$offset] = $value;
- }
- }
-
- public function offsetExists($offset)
- {
- return isset($this->records[$offset]);
- }
-
- public function offsetUnset($offset)
- {
- unset($this->records[$offset]);
- }
-
- public function offsetGet($offset)
- {
- return $this->records[$offset];
- }
-
/*** PHP 5 Iterator interface ***/
function rewind()