class Result
Arbitrary data returned from a graph query. It can respresent several primitive types as well as composite types and graph elements.
Implements
IteratorArrayAccess
Methods
string __toString
( )Gets the string representation of the contained data.
int count
( )Gets the number of elements in the result if it is a composite types such as an array or object.
null rewind
( )Resets the internal iterator of this result if it is a composite type such as an array or object.
Graph\Result current
( )Gets the element of the composite result at the current position of the iterator.
string key
( )Gets the key of an object result at the current posistion of the iterator.
null next
( )Moves the iterator to the next position if a composite result such as an array or object.
bool valid
( )Determines if the iterator is currently in a valid position.
bool offsetExists
(mixed $offset )
Determines if an offset is contained in the result. Only valid for an array or object.
Gets the value contained at an offset. Only valid for an array or object.
mixed offsetSet
(mixed $offset, mixed $value )
Not implmented. The result is read-only.
mixed offsetUnset
(mixed $offset )
Not implmented. The result is read-only.
bool isNull
( )Determines if the result is a null value.
bool isValue
( )Determines if the result is not a composite value like an array or object.
bool isArray
( )Determines if the result is an array.
bool isObject
( )Determines if the result is an object.
bool isBool
( )Determines if the result is a bool.
bool isNumber
( )Determines if the value is an integer or a double.
bool isString
( )Determines if the value is a string.
mixed value
( )Gets the PHP value contained in the result.
bool asInt
( )Determines if the result is a integer.
bool asBool
( )Converts the result’s value to a bool.
double asDouble
( )Converts the result’s value to a double.
string asString
( )Converts the result’s value to a string.
Graph\Edge asEdge
( )Converts an object result to an edge.
Graph\Path asPath
( )Converts an object result to a path.
Grap\Vertex asVertex
( )Converts an object result to a vertex.
Dse\Point asPoint
( )Converts a string result to the point geospatial type. This expects the string to be in the well-known text (WKT) representation.
Dse\LineString asLineString
( )Converts a string result to the line string geospatial type. This expects the string to be in the well-known text (WKT) representation.
Dse\Polygon asPolygon
( )Converts a string result to the polygon geospatial type. This expects the string to be in the well-known text (WKT) representation.
Dse\DateRange asDateRange
( )Converts a string result to the Dse\DateRange type.