$apiUrl
$apiUrl : string
$cache : \Radar\Connect\Cache
setCache(\Radar\Connect\Cache $cache)
Set a cache to store entities.
\Radar\Connect\Cache | $cache |
retrieveEntity(\Radar\Connect\Entity\Entity $entity) : \Radar\Connect\Entity\Entity
Retrieve all fields for single entity.
Entities can be partly loaded. Especially when just a reference on an event or group. Use this to retrieve the full entity. If there is a cache set, and the entity is still validly cached this will be returned rather than making a new query.
\Radar\Connect\Entity\Entity | $entity | The partly loaded entity. |
The loaded entity.
retrieveEntityMultiple(array<mixed,\Radar\Connect\Entity\Entity> $entities) : array<mixed,\Radar\Connect\Entity\Entity>
Retrieve all fields for multiple entities.
As retrieveEntity(), but making multiple concurrent requests.
array<mixed,\Radar\Connect\Entity\Entity> | $entities | Array of partly loaded entities. |
Array of loaded entities.
putEntity(\Radar\Connect\Entity\Entity $entity)
TODO Insert or update an existing Entity.
\Radar\Connect\Entity\Entity | $entity |
prepareEventsRequest(\Radar\Connect\Filter $filter, array $fields = array(), integer $limit = 500) : \Guzzle\Http\Message\Request
Prepare a request to retrieve events.
\Radar\Connect\Filter | $filter | |
array | $fields | A list of fields to load. Optional, default is most available fields. |
integer | $limit | How many events to return. |
Request object to retrieve.
prepareGroupsRequest(\Radar\Connect\Filter $filter, array $fields = array(), integer $limit = 500) : \Guzzle\Http\Message\Request
Prepare a request to retrieve groups.
\Radar\Connect\Filter | $filter | |
array | $fields | A list of fields to load. Optional, default is most available fields. |
integer | $limit | How many groups to return. |
Request object to retrieve.
retrieve(\Guzzle\Http\Message\RequestInterface $request) : array<mixed,\Radar\Connect\Entity\Entity>
Retrieve entities from a prepared request.
\Guzzle\Http\Message\RequestInterface | $request |
retrieveMultiple(array<mixed,\Guzzle\Http\Message\RequestInterface> $requests) : array<mixed,\Radar\Connect\Entity\Entity>
Retrieve entities from multiple prepared requests.
Results are merged into one entity array.
array<mixed,\Guzzle\Http\Message\RequestInterface> | $requests |