PHP Class Pingpp\ApiResource

Inheritance: extends PingppObject
显示文件 Open project: pingplusplus/pingpp-php

Public Methods

Method Description
baseUrl ( )
className ( ) : string
classUrl ( ) : string
instanceUrl ( ) : string
refresh ( ) : ApiResource

Protected Methods

Method Description
_all ( $params = null, $options = null )
_create ( $params = null, $options = null )
_delete ( $params = null, $options = null )
_request ( $method, $url, $params = [], $options = null )
_retrieve ( $id, $options = null )
_save ( $options = null )
_staticRequest ( $method, $url, $params, $options )

Private Methods

Method Description
_validateParams ( $params = null )

Method Details

_all() protected static method

protected static _all ( $params = null, $options = null )

_create() protected static method

protected static _create ( $params = null, $options = null )

_delete() protected method

protected _delete ( $params = null, $options = null )

_request() protected method

protected _request ( $method, $url, $params = [], $options = null )

_retrieve() protected static method

protected static _retrieve ( $id, $options = null )

_save() protected method

protected _save ( $options = null )

_staticRequest() protected static method

protected static _staticRequest ( $method, $url, $params, $options )

baseUrl() public static method

public static baseUrl ( )

className() public static method

public static className ( ) : string
return string The name of the class, with namespacing and underscores stripped.

classUrl() public static method

public static classUrl ( ) : string
return string The endpoint URL for the given class.

instanceUrl() public method

public instanceUrl ( ) : string
return string The full API URL for this API resource.

refresh() public method

public refresh ( ) : ApiResource
return ApiResource The refreshed resource.