PHP 클래스 Pingpp\PingppObject

상속: implements ArrayAcces\ArrayAccess, implements JsonSerializable
파일 보기 프로젝트 열기: pingplusplus/pingpp-php 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$nestedUpdatableAttributes Attributes that are nested but still updatable from the parent class's URL (e.g. metadata).
$permanentAttributes Attributes that should not be sent to the API because they're not updatable (e.g. API key, ID).

보호된 프로퍼티들

프로퍼티 타입 설명
$_opts
$_retrieveOptions
$_transientValues
$_unsavedValues
$_values

공개 메소드들

메소드 설명
__construct ( $id = null, $opts = null )
__get ( $k )
__isset ( $k )
__set ( $k, $v ) Standard accessor magic methods
__toArray ( $recursive = false )
__toJSON ( )
__toStdObject ( )
__toString ( )
__unset ( $k )
constructFrom ( stdObject $values, array $opts ) : PingppObject This unfortunately needs to be public to be used in Util.php
init ( )
jsonSerialize ( )
keys ( )
offsetExists ( $k )
offsetGet ( $k )
offsetSet ( $k, $v ) ArrayAccess methods
offsetUnset ( $k )
refreshFrom ( stdObject $values, array $opts, boolean $partial = false ) Refreshes this object using the provided values.
serializeParameters ( ) : array

메소드 상세

__construct() 공개 메소드

public __construct ( $id = null, $opts = null )

__get() 공개 메소드

public __get ( $k )

__isset() 공개 메소드

public __isset ( $k )

__set() 공개 메소드

Standard accessor magic methods
public __set ( $k, $v )

__toArray() 공개 메소드

public __toArray ( $recursive = false )

__toJSON() 공개 메소드

public __toJSON ( )

__toStdObject() 공개 메소드

public __toStdObject ( )

__toString() 공개 메소드

public __toString ( )

__unset() 공개 메소드

public __unset ( $k )

constructFrom() 공개 정적인 메소드

This unfortunately needs to be public to be used in Util.php
public static constructFrom ( stdObject $values, array $opts ) : PingppObject
$values stdObject
$opts array
리턴 PingppObject The object constructed from the given values.

init() 공개 정적인 메소드

public static init ( )

jsonSerialize() 공개 메소드

public jsonSerialize ( )

keys() 공개 메소드

public keys ( )

offsetExists() 공개 메소드

public offsetExists ( $k )

offsetGet() 공개 메소드

public offsetGet ( $k )

offsetSet() 공개 메소드

ArrayAccess methods
public offsetSet ( $k, $v )

offsetUnset() 공개 메소드

public offsetUnset ( $k )

refreshFrom() 공개 메소드

Refreshes this object using the provided values.
public refreshFrom ( stdObject $values, array $opts, boolean $partial = false )
$values stdObject
$opts array
$partial boolean Defaults to false.

serializeParameters() 공개 메소드

public serializeParameters ( ) : array
리턴 array A recursive mapping of attributes to values for this object, including the proper value for deleted attributes.

프로퍼티 상세

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

protected $_opts

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

protected $_retrieveOptions

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

protected $_transientValues

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

protected $_unsavedValues

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

protected $_values

$nestedUpdatableAttributes 공개적으로 정적으로 프로퍼티

Attributes that are nested but still updatable from the parent class's URL (e.g. metadata).
public static $nestedUpdatableAttributes

$permanentAttributes 공개적으로 정적으로 프로퍼티

Attributes that should not be sent to the API because they're not updatable (e.g. API key, ID).
public static $permanentAttributes