PHP Class Recurly_Base, recurly-client-php

Afficher le fichier Open project: recurly/recurly-client-php Class Usage Examples

Méthodes publiques

Свойство Type Description
$class_map Mapping of XML node to PHP object name

Protected Properties

Свойство Type Description
$_client
$_href
$_links

Méthodes publiques

Méthode Description
__construct ( $href = null, $client = null )
__toString ( ) Pretty string version of the object
_get ( $uri, $client = null ) Request the URI, validate the response and return the object.
getHref ( )
getLinks ( )
setHref ( $href )

Méthodes protégées

Méthode Description
__parseResponseToNewObject ( $response, $uri, $client ) Use a valid Recurly_Response to populate a new object.
__parseXmlToObject ( $node, &$object )
__parseXmlToUpdateObject ( $xml ) Use the XML to update $this object.
__valuesString ( )
_afterParseResponse ( $response, $uri ) Optional method to allow objects access to the full response with headers.
_delete ( $uri, $client = null ) Delete the URI, validate the response and return the object.
_post ( $uri, $data = null, $client = null ) Post to the URI, validate the response and return the object.
_put ( $uri, $client = null ) Put to the URI, validate the response and return the object.
_uriWithParams ( $uri, $params = null )

Private Methods

Méthode Description
__createNodeObject ( $node )
addLink ( $name, $href, $method )
parseErrorNode ( $node )

Method Details

__construct() public méthode

public __construct ( $href = null, $client = null )

__parseResponseToNewObject() protected static méthode

Use a valid Recurly_Response to populate a new object.
protected static __parseResponseToNewObject ( $response, $uri, $client )

__parseXmlToObject() protected static méthode

protected static __parseXmlToObject ( $node, &$object )

__parseXmlToUpdateObject() protected méthode

Use the XML to update $this object.
protected __parseXmlToUpdateObject ( $xml )

__toString() public méthode

Pretty string version of the object
public __toString ( )

__valuesString() protected méthode

protected __valuesString ( )

_afterParseResponse() protected méthode

Optional method to allow objects access to the full response with headers.
protected _afterParseResponse ( $response, $uri )

_delete() protected static méthode

Delete the URI, validate the response and return the object.
protected static _delete ( $uri, $client = null )

_get() public static méthode

Request the URI, validate the response and return the object.
public static _get ( $uri, $client = null )

_post() protected static méthode

Post to the URI, validate the response and return the object.
protected static _post ( $uri, $data = null, $client = null )

_put() protected static méthode

Put to the URI, validate the response and return the object.
protected static _put ( $uri, $client = null )

_uriWithParams() protected static méthode

protected static _uriWithParams ( $uri, $params = null )

getHref() public méthode

public getHref ( )

setHref() public méthode

public setHref ( $href )

Property Details

$_client protected_oe property

protected $_client

$_href protected_oe property

protected $_href

$class_map static_oe public_oe property

Mapping of XML node to PHP object name
static public $class_map