PHP Класс Pingpp\PingppObject

Наследование: implements ArrayAcces\ArrayAccess, implements JsonSerializable
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$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).

Защищенные свойства (Protected)

Свойство Тип Описание
$_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