package
|
HttpSource
|
subpackage
|
Config
|
Methods
Constructor
__construct(\HttpSourceConfigFactory $ConfigFactory)
inherited
Check if endpoint matched by given fields
_endpointMatch(\HttpSourceEndpoint $Endpoint, array $fields) : boolean
Arguments
Response
boolean
Add and check endpoint
add(\HttpSourceEndpoint $Endpoint) : \HttpSourceConfig
Set or get endpoint cache name
cacheName(string $name = null) : \HttpSourceEndpoint
Returns endpoint info for the model
in schema format
describe(\Model $model) : array
Get endpoint by id
endpoint(integer $id) : \HttpSourceEndpoint
Finds endpoint that match given arguments
findEndpoint(string $method, string $table, array $fields = array()) : \HttpSourceEndpoint
throws
|
If endpoint not found
|
Arguments
$method
string
CRUD method name
Response
\HttpSourceEndpoint
Retunrn config factory
getConfigFactory() : \HttpSourceConfigFactory
inherited
Returns list of available sources (tables)
listSources() : array
Get and set default endpoint mapped read params
readParams(array $params = null) : \HttpSourceConfig
Get and set default endpoint result handler
result(\HttpSourceResult $Result = null) : \HttpSourceConfig
Properties
Holds default result handler that applied
if no result handler found in endpoint
_result : \HttpSourceResult
Added endpoints
_endpoints : array
Added endpoints by id
_endpointsById : array
Default mapped read params (limit, offset, etc)
_readParams : array
Available endpoint methods
_methods : array
Global cache name for store requests. If null cache not used.
_cacheName : string
Cache works only for read method
Type(s)
string
Config factory instance
_ConfigFactory : \HttpSourceConfigFactory
inherited