PHP Class XeroPHP\Application

Afficher le fichier Open project: calcinai/xero-php Class Usage Examples

Protected Properties

Свойство Type Description
$_config_defaults
$_type_config_defaults array
$config array
$oauth_client XeroPHP\Remote\OAuth\Client

Méthodes publiques

Méthode Description
__construct ( array $user_config )
delete ( Object $object ) : Response
getAuthorizeURL ( string | null $oauth_token = null ) : string
getConfig ( mixed $key ) : mixed
getOAuthClient ( ) : Client
load ( string $model ) : Query
loadByGUID ( $model, $guid ) : Object | null As you should never have a GUID for a non-existent object, will throw a NotFoundExceptioon
save ( Object $object, boolean $replace_data = false ) : Response | null
saveAll ( Collection | array $objects ) : Response
validateModelClass ( string $class ) : string Validates and expands the provided model class to a full PHP class

Private Methods

Méthode Description
savePropertiesDirectly ( Object $object ) Function to save properties directly which do not update via a POST.

Method Details

__construct() public méthode

public __construct ( array $user_config )
$user_config array

delete() public méthode

public delete ( Object $object ) : Response
$object XeroPHP\Remote\Object
Résultat XeroPHP\Remote\Response

getAuthorizeURL() public méthode

public getAuthorizeURL ( string | null $oauth_token = null ) : string
$oauth_token string | null
Résultat string

getConfig() public méthode

public getConfig ( mixed $key ) : mixed
$key mixed
Résultat mixed

getOAuthClient() public méthode

public getOAuthClient ( ) : Client
Résultat XeroPHP\Remote\OAuth\Client

load() public méthode

public load ( string $model ) : Query
$model string
Résultat XeroPHP\Remote\Query

loadByGUID() public méthode

As you should never have a GUID for a non-existent object, will throw a NotFoundExceptioon
public loadByGUID ( $model, $guid ) : Object | null
$model
$guid
Résultat XeroPHP\Remote\Object | null

save() public méthode

public save ( Object $object, boolean $replace_data = false ) : Response | null
$object XeroPHP\Remote\Object
$replace_data boolean
Résultat XeroPHP\Remote\Response | null

saveAll() public méthode

public saveAll ( Collection | array $objects ) : Response
$objects XeroPHP\Remote\Collection | array
Résultat XeroPHP\Remote\Response

validateModelClass() public méthode

Validates and expands the provided model class to a full PHP class
public validateModelClass ( string $class ) : string
$class string
Résultat string

Property Details

$_config_defaults protected_oe static_oe property

protected static $_config_defaults

$_type_config_defaults protected_oe static_oe property

protected static array $_type_config_defaults
Résultat array

$config protected_oe property

protected array $config
Résultat array

$oauth_client protected_oe property

protected Client,XeroPHP\Remote\OAuth $oauth_client
Résultat XeroPHP\Remote\OAuth\Client