CollectionCursor
extends Cursor
in package
Represents an ArangoDB cursor for a collection
Tags
Table of Contents
Methods
- __construct() : mixed
- CollectionCursor constructor.
- __toString() : string
- Return an string representation of document.
- count() : int
- current() : Document|mixed
- Return the current element.
- delete() : bool
- Deletes the cursor and frees the resources associated with it.
- fetch() : void
- Fetch more results from the server.
- getId() : mixed
- Returns the cursor ID
- isCached() : bool
- Return if the Cursor has cached results on server
- key() : mixed
- Return the key of the current element.
- next() : void
- Move forward to next element.
- rewind() : void
- Rewind the Iterator to the first element.
- valid() : bool
- Checks if current position is valid.
Methods
__construct()
CollectionCursor constructor.
public
__construct(Collection $collection) : mixed
Parameters
- $collection : Collection
-
Collection
Tags
__toString()
Return an string representation of document.
public
__toString() : string
Return values
stringcount()
public
count() : int
Tags
Return values
intcurrent()
Return the current element.
public
current() : Document|mixed
Tags
Return values
Document|mixeddelete()
Deletes the cursor and frees the resources associated with it.
public
delete() : bool
Tags
Return values
boolfetch()
Fetch more results from the server.
public
fetch() : void
Tags
getId()
Returns the cursor ID
public
getId() : mixed
isCached()
Return if the Cursor has cached results on server
public
isCached() : bool
Return values
boolkey()
Return the key of the current element.
public
key() : mixed
next()
Move forward to next element.
public
next() : void
rewind()
Rewind the Iterator to the first element.
public
rewind() : void
valid()
Checks if current position is valid.
public
valid() : bool