HJI WP Membership Code Reference
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo
  • Hook Reference
  • Slipstream API Docs

Namespaces

  • hji
    • AgentRoster
      • controllers
      • models
      • utils
    • common
      • factories
      • interfaces
      • models
      • utils
    • construction
      • admin
        • controllers
        • models
      • core
      • front
        • controllers
      • interfaces
      • models
        • listings
        • subdivisions
      • views
    • geofarms
      • common
      • controllers
      • models
      • widgets
    • homevalue
      • controllers
      • core
        • abstracts
      • models
    • lifestylefinder
    • listingstoblog
      • controllers
    • membership
      • abstracts
      • controllers
      • entities
      • extension
        • abstracts
        • interfaces
      • factories
      • includes
      • interfaces
      • models
        • data
        • webservice
          • abstracts
          • actions
          • interfaces
      • observers
      • services
    • recentsales
      • controllers
      • tinymce
      • widgets
    • ResponsiveIDX
      • abstracts
      • adapters
      • controllers
      • core
        • abstracts
      • entities
      • models
      • services
      • tinymce
      • utils
      • widgets
    • schools
      • controllers
      • tinymce
      • widgets
    • users
      • abstracts
      • admin
        • controllers
        • models
      • controllers
      • core
        • abstracts
      • entities
      • models
      • utils
  • None
  • REL
    • controllers
    • Models
    • Taxonomies
    • Utils
      • Convert
    • widgets

Classes

  • Component
  • Controller
  • DataModel
  • DataObjectPostView
  • Model
  • Paths
  • PostModel
  • WebService
  • Widget

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
Extended by hji\membership\abstracts\Component
Extended by hji\membership\abstracts\Model
Extended by hji\membership\models\webservice\abstracts\WebService implements hji\membership\models\webservice\interfaces\ISearchable, hji\membership\models\webservice\interfaces\IGettable
Extended by hji\construction\core\WebService

Direct known subclasses

hji\construction\models\listings\ListingsModel, hji\construction\models\subdivisions\SubdivisionsModel

Namespace: hji\construction\core
Package: hji\construction\core
Located at Core/WebService.php

Methods summary

public
# __construct( )

Overrides

hji\membership\models\webservice\abstracts\WebService::__construct
public
# getObjectName( )
public
# getItemModelClass( )
public
# setFilters( $filters )
public
# setOptions( $options )
public
# getData( )

Overrides

hji\membership\models\webservice\abstracts\WebService::getData
public
# getTotal( )
public
# getPaging( )
public
# getSorting( )
protected
# handleResponse( $response )
protected
# handleResponseError( $response )
protected mixed
# _execute( $method )

Executes provided webservice method and returns result

Executes provided webservice method and returns result

Parameters

$method

Returns

mixed

Throws

Exception
protected mixed
# _sendRequest( $method, $params )

Dispatches API request

Dispatches API request

Parameters

$method
$params

Returns

mixed

Throws

Exception

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

getServiceContainer(), services()

Methods inherited from hji\membership\services\DependencyInjector

di()

Properties summary

protected $objectName
#
protected $itemModelClass
#
protected static array $_cache
# array()

Properties inherited from hji\membership\models\webservice\abstracts\WebService

$filters, $method, $options, $path, $rawParameters

HJI WP Membership Code Reference API documentation generated by ApiGen