Method | Description | |
---|---|---|
__construct ( array $fields = [] ) | Constructor for XMLRPCStruct | |
__get ( string $name ) : mixed | Property getter for the XMLRPCStruct class. | |
__isset ( string $name ) : boolean | Magic isset for XMLRPCStruct, returns whether a property value is set. | |
__set ( string $name, mixed $value ) | Property setter for the XMLRPCStruct class. | |
get_fields ( ) : array | Get the list of properties that this object contains. |
public __construct ( array $fields = [] ) | ||
$fields | array | Default field values to set into properties. |
$struct = new XMLRPCStruct();
$struct->foo = 'bar'; // This is done by __set() and assigns 'bar' into $this->fields['foo']
public get_fields ( ) : array | ||
return | array | List of object properties, as stored in $this->fields. |