Property | Type | Description | |
---|---|---|---|
$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). |
Property | Type | Description | |
---|---|---|---|
$_opts | |||
$_retrieveOptions | |||
$_transientValues | |||
$_unsavedValues | |||
$_values |
Method | Description | |
---|---|---|
__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 ) : |
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 |
public static constructFrom ( stdObject $values, array $opts ) : |
||
$values | stdObject | |
$opts | array | |
return | The object constructed from the given values. |
public refreshFrom ( stdObject $values, array $opts, boolean $partial = false ) | ||
$values | stdObject | |
$opts | array | |
$partial | boolean | Defaults to false. |
public serializeParameters ( ) : array | ||
return | array | A recursive mapping of attributes to values for this object, including the proper value for deleted attributes. |
public static $nestedUpdatableAttributes |