ILIAS
eassessment Revision 61809
|
Public Member Functions | |
getScalarType () | |
scalarType property getter | |
__construct ($scalarType, $nativeValue) | |
Constructor. | |
encode () | |
Encode the instance into XML, for transport. | |
Public Member Functions inherited from XML_RPC2_Backend_Php_Value | |
getNativeValue () | |
nativeValue property getter |
Static Public Member Functions | |
static | createFromNative ($nativeValue, $explicitType=null) |
Choose a XML_RPC2_Value subclass appropriate for the given value and create it. | |
Static Public Member Functions inherited from XML_RPC2_Backend_Php_Value | |
static | createFromDecode ($simpleXML) |
Decode an encoded value and build the applicable XML_RPC2_Value subclass. |
Protected Member Functions | |
setScalarType ($value) | |
scalarType property setter | |
Protected Member Functions inherited from XML_RPC2_Backend_Php_Value | |
setNativeValue ($value) | |
nativeValue setter |
Private Attributes | |
$_scalarType = null |
Definition at line 57 of file Scalar.php.
XML_RPC2_Backend_Php_Value_Scalar::__construct | ( | $scalarType, | |
$nativeValue | |||
) |
Constructor.
Will build a new XML_RPC2_Value_Scalar with the given nativeValue
mixed | nativeValue |
Definition at line 115 of file Scalar.php.
References XML_RPC2_Backend_Php_Value\setNativeValue(), and setScalarType().
|
static |
Choose a XML_RPC2_Value subclass appropriate for the given value and create it.
string | The native value |
string | Optinally, the scalar type to use |
XML_RPC2_InvalidTypeEncodeException | When native value's type is not a native type |
Reimplemented from XML_RPC2_Backend_Php_Value.
Definition at line 133 of file Scalar.php.
XML_RPC2_Backend_Php_Value_Scalar::encode | ( | ) |
Encode the instance into XML, for transport.
Reimplemented in XML_RPC2_Backend_Php_Value_String, and XML_RPC2_Backend_Php_Value_Boolean.
Definition at line 163 of file Scalar.php.
References XML_RPC2_Backend_Php_Value\getNativeValue(), and getScalarType().
XML_RPC2_Backend_Php_Value_Scalar::getScalarType | ( | ) |
scalarType property getter
Definition at line 102 of file Scalar.php.
References $_scalarType.
Referenced by encode().
|
protected |
scalarType property setter
mixed | value The new scalarType |
Definition at line 77 of file Scalar.php.
Referenced by XML_RPC2_Backend_Php_Value_String\__construct(), XML_RPC2_Backend_Php_Value_Integer\__construct(), XML_RPC2_Backend_Php_Value_Double\__construct(), and __construct().
|
private |
Definition at line 67 of file Scalar.php.
Referenced by getScalarType().