X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=vendor%2Fgabordemooij%2Fredbean%2FRedBeanPHP%2FBeanCollection.php;fp=vendor%2Fgabordemooij%2Fredbean%2FRedBeanPHP%2FBeanCollection.php;h=0000000000000000000000000000000000000000;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hp=25ab5017ef593da7faa783c42603b61e0dee2922;hpb=aea91e65e895364e460983b890e295aa5d5540a5;p=yaffs-website diff --git a/vendor/gabordemooij/redbean/RedBeanPHP/BeanCollection.php b/vendor/gabordemooij/redbean/RedBeanPHP/BeanCollection.php deleted file mode 100644 index 25ab5017e..000000000 --- a/vendor/gabordemooij/redbean/RedBeanPHP/BeanCollection.php +++ /dev/null @@ -1,92 +0,0 @@ -type = $type; - $this->cursor = $cursor; - $this->repository = $repository; - } - - /** - * Returns the next bean in the collection. - * If called the first time, this will return the first bean in the collection. - * If there are no more beans left in the collection, this method - * will return NULL. - * - * @return OODBBean|NULL - */ - public function next() - { - $row = $this->cursor->getNextItem(); - if ( $row ) { - $beans = $this->repository->convertToBeans( $this->type, array( $row ) ); - $bean = array_shift( $beans ); - return $bean; - } - return NULL; - } - - /** - * Closes the underlying cursor (needed for some databases). - * - * @return void - */ - public function close() - { - $this->cursor->close(); - } -}