PHP 클래스 XeroPHP\Application

파일 보기 프로젝트 열기: calcinai/xero-php 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_config_defaults
$_type_config_defaults array
$config array
$oauth_client XeroPHP\Remote\OAuth\Client

공개 메소드들

메소드 설명
__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

비공개 메소드들

메소드 설명
savePropertiesDirectly ( Object $object ) Function to save properties directly which do not update via a POST.

메소드 상세

__construct() 공개 메소드

public __construct ( array $user_config )
$user_config array

delete() 공개 메소드

public delete ( Object $object ) : Response
$object XeroPHP\Remote\Object
리턴 XeroPHP\Remote\Response

getAuthorizeURL() 공개 메소드

public getAuthorizeURL ( string | null $oauth_token = null ) : string
$oauth_token string | null
리턴 string

getConfig() 공개 메소드

public getConfig ( mixed $key ) : mixed
$key mixed
리턴 mixed

getOAuthClient() 공개 메소드

public getOAuthClient ( ) : Client
리턴 XeroPHP\Remote\OAuth\Client

load() 공개 메소드

public load ( string $model ) : Query
$model string
리턴 XeroPHP\Remote\Query

loadByGUID() 공개 메소드

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

save() 공개 메소드

public save ( Object $object, boolean $replace_data = false ) : Response | null
$object XeroPHP\Remote\Object
$replace_data boolean
리턴 XeroPHP\Remote\Response | null

saveAll() 공개 메소드

public saveAll ( Collection | array $objects ) : Response
$objects XeroPHP\Remote\Collection | array
리턴 XeroPHP\Remote\Response

validateModelClass() 공개 메소드

Validates and expands the provided model class to a full PHP class
public validateModelClass ( string $class ) : string
$class string
리턴 string

프로퍼티 상세

$_config_defaults 보호되어 있는 정적으로 프로퍼티

protected static $_config_defaults

$_type_config_defaults 보호되어 있는 정적으로 프로퍼티

protected static array $_type_config_defaults
리턴 array

$config 보호되어 있는 프로퍼티

protected array $config
리턴 array

$oauth_client 보호되어 있는 프로퍼티

protected Client,XeroPHP\Remote\OAuth $oauth_client
리턴 XeroPHP\Remote\OAuth\Client