PHP Class Habari\XMLRPCStruct

Show file Open project: habari/system

Public Methods

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.

Method Details

__construct() public method

Constructor for XMLRPCStruct
public __construct ( array $fields = [] )
$fields array Default field values to set into properties.

__get() public method

Returns the value of $this->fields for the specified porperty name.
public __get ( string $name ) : mixed
$name string The name of the property
return mixed The value stored for the requested property

__isset() public method

Magic isset for XMLRPCStruct, returns whether a property value is set.
public __isset ( string $name ) : boolean
$name string The name of the parameter
return boolean True if the value is set, false if not

__set() public method

This allows the following: $struct = new XMLRPCStruct(); $struct->foo = 'bar'; // This is done by __set() and assigns 'bar' into $this->fields['foo']
public __set ( string $name, mixed $value )
$name string The name of the property on this object to set
$value mixed The value to set in the property

get_fields() public method

Get the list of properties that this object contains.
public get_fields ( ) : array
return array List of object properties, as stored in $this->fields.