Class WebService
Class WebService - IS AN INTERFACE to Web Service Classes
IMPORTANT: this class has to be extended by an actual web service Example: class Listings extends WebService
Actual service call methods needs to be defined within the web service class Example: get(); search(); authenticate(); etc. each service call should execute corresponding APIClient method as follows:
function search() { $this->_execute('ListingsSearch'); }
TODO: refactor why define methods? Instead register them as
$webservice->registerEndpoint('search', 'ListingsSearch'); // endpoint, api client method $webservice->search() would execute API Client method via magic method.
The final refactoring goal should be: $webservice->register('search', 'v1/new-construction/listings/search'); $webservice->call('search'); <-- this needs to accept array for call chaining
- hji\membership\services\DependencyInjector
- hji\membership\abstracts\Component
- hji\membership\abstracts\Model
- hji\membership\models\webservice\abstracts\WebService implements hji\membership\models\webservice\interfaces\ISearchable, hji\membership\models\webservice\interfaces\IGettable
- hji\construction\core\WebService
Direct known subclasses
hji\construction\models\listings\ListingsModel
,
hji\construction\models\subdivisions\SubdivisionsModel
Methods summary
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
protected
|
|
protected
|
|
protected
mixed
|
|
protected
mixed
|
Methods inherited from hji\membership\models\webservice\abstracts\WebService
call()
,
get()
,
getFilters()
,
getOptions()
,
getParameters()
,
getPath()
,
search()
,
setMethod()
,
setParameters()
Methods inherited from hji\membership\abstracts\Component
Methods inherited from hji\membership\services\DependencyInjector
Properties summary
protected
|
$objectName
|
|
protected
|
$itemModelClass
|
|
protected static
array
|
$_cache
|
#
array()
|