package
|
HttpSourceTest
|
subpackage
|
Config
|
Methods
Constructor
__construct(\HttpSourceConfigFactory $ConfigFactory)
inherited
Buils query parameters
_buildQuery(\Model $model, array $usedConditions, array $queryData)
inherited
Arguments
$usedConditions
array
List of conditions that must present in query
$queryData
array
Query data: conditions, limit, etc
If true conditions by default will be sent in query, otherwize in body
_mustSendInQuery(\Model $model) : boolean
inherited
Arguments
Response
boolean
Apply renaming and callbacks to items
_process(array $items, array $storage, \Model $model) : array
inherited
Process conditions mappings as set by condition->map() method
_processConditions(\Model $model, array &$conditions)
inherited
Process read parameters. Eq: map limit parameter to some condition
_processReadParams(\Model $model, array &$params)
inherited
Add new conditions
addCondition(\HttpSourceCondition $Condition) : \HttpSourceEndpoint
inherited
Add new field
addField(\HttpSourceField $Field) : \HttpSourceEndpoint
inherited
Build request and store it in model->request
buildRequest(\Model $model, array $queryData)
inherited
Set or get endpoint cache name
cacheName(string $name = null) : \HttpSourceEndpoint
inherited
Get condition by name, if condition not exists
create, add and return new
condition(string $name) : \HttpSourceCondition
inherited
Returns associative list of default condition names
and values
conditionsDefaults() : array
inherited
Get field by name, if field not exists
create, add and return new
field(string $name) : \HttpSourceCondition
inherited
Retunrn config factory
getConfigFactory() : \HttpSourceConfigFactory
inherited
Set or get endpoint id
id(integer $id = null) : \HttpSourceEndpoint
inherited
Get endpoint method
method() : \HttpSourceEndpoint
inherited
Set endpoint method to 'check'
methodCheck() : \HttpSourceEndpoint
inherited
Set endpoint method to 'create'
methodCreate() : \HttpSourceEndpoint
inherited
Set endpoint method to 'delete'
methodDelete() : \HttpSourceEndpoint
inherited
Set endpoint method to 'read'
methodRead() : \HttpSourceEndpoint
inherited
Set endpoint method to 'update'
methodUpdate() : \HttpSourceEndpoint
inherited
Returns list of optional condition names
optionalConditions() : array
inherited
Set or get endpoint path
path(string $name = null) : \HttpSourceEndpoint
inherited
Process field mappings as set by field->map() method
processFields(\Model $model, array &$results)
inherited
Process results with result handler
processResult(\Model $model, array &$result)
inherited
Set or get endpoint query builder instead of _buildQuery
queryBuilder(callable $queryBuilder = null) : \HttpSourceEndpoint
inherited
Set or get endpoint mapped read param
readParams(array $params = null) : \HttpSourceEndpoint
inherited
Set or get endpoint request splitter
requestSplitter(callable $requestSplitter = null) : \HttpSourceEndpoint
inherited
Returns list of required condition names
requiredConditions() : array
inherited
Set or get endpoint response joiner
responseJoiner(callable $responseJoiner = null) : \HttpSourceEndpoint
inherited
Set or get endpoint result handler
result(\HttpSourceResult $Result = null) : \HttpSourceEndpoint
inherited
Build schema array to describe endpoint
schema() : array
inherited
Set or get endpoint table
table(string $name = null) : \HttpSourceEndpoint
inherited
Constants
CRUD constants
METHOD_READ
inherited
METHOD_CREATE
METHOD_CREATE
inherited
METHOD_UPDATE
METHOD_UPDATE
inherited
METHOD_DELETE
METHOD_DELETE
inherited
METHOD_CHECK
METHOD_CHECK
inherited
Properties
Endpoint CRUD method
_method : string
inherited
Table name
_table : string
inherited
Endpoint path
_path : string
inherited
Endpoint fields
_fields : array
inherited
Endpoint conditions
_conditions : array
inherited
Endpoint result handler
_result : \HttpSourceResult
inherited
Mapped read params (limit, offset, etc)
_readParams : array
inherited
Endpoint id
_id : integer
inherited
Function for splitting request
_requestSplitter : callable
inherited
Function to join results of splitted requests
_responseJoiner : callable
inherited
Function to build query instead of _buildQuery
_queryBuilder : callable
inherited
Cache name for store requests. If null cache not used.
_cacheName : string
inherited
Cache works only for read method
This setting will override global cache from config
Type(s)
string
Config factory instance
_ConfigFactory : \HttpSourceConfigFactory
inherited