Class ListingsModel
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
- hji\construction\models\listings\ListingsModel
Package: hji\construction\core
Located at App/models/listings/ListingsModel.php
Methods summary
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
Methods inherited from hji\construction\core\WebService
_execute()
,
_sendRequest()
,
getData()
,
getItemModelClass()
,
getObjectName()
,
getPaging()
,
getSorting()
,
getTotal()
,
handleResponse()
,
handleResponseError()
,
setFilters()
,
setOptions()
Methods inherited from hji\membership\models\webservice\abstracts\WebService
call()
,
getFilters()
,
getOptions()
,
getParameters()
,
getPath()
,
setMethod()
,
setParameters()
Methods inherited from hji\membership\abstracts\Component
Methods inherited from hji\membership\services\DependencyInjector
Properties summary
protected
|
$filters
|
|
protected
|
$options
|
|
protected
|
$error
|
|
protected
array
|
$data
|
#
array()
|
protected
|
$total
|
|
protected
|
$paging
|
|
protected
|
$sorting
|
|
protected
|
$itemModelClass
|