PHP 클래스 Habari\XMLRPCStruct

파일 보기 프로젝트 열기: habari/system

공개 메소드들

메소드 설명
__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.

메소드 상세

__construct() 공개 메소드

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

__get() 공개 메소드

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

__isset() 공개 메소드

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

__set() 공개 메소드

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() 공개 메소드

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