A class representing an abstract XML-RPC type.
More...
|
static | read ($value,\DateTimeZone $timezone=null) |
|
|
static | parse ($value,\DateTimeZone $timezone=null) |
|
|
| $value |
| Current value associated with this object.
|
|
A class representing an abstract XML-RPC type.
- Authors
- François Poirotte click.nosp@m.y@er.nosp@m.ebot..nosp@m.net
Definition at line 20 of file AbstractType.php.
fpoirotte\XRL\Types\AbstractType::__construct |
( |
|
$value | ) |
|
fpoirotte\XRL\Types\AbstractType::__toString |
( |
| ) |
|
Return a string representation of this object's value.
- Return values
-
string | String representation of this object's value. |
Definition at line 81 of file AbstractType.php.
fpoirotte\XRL\Types\AbstractType::get |
( |
| ) |
|
static fpoirotte\XRL\Types\AbstractType::parse |
( |
|
$value, |
|
|
\DateTimeZone |
$timezone = null |
|
) |
| |
|
staticprotected |
static fpoirotte\XRL\Types\AbstractType::read |
( |
|
$value, |
|
|
\DateTimeZone |
$timezone = null |
|
) |
| |
|
staticfinal |
Construct a new instance of the type with the content from some string.
- Parameters
-
string | $value | Raw value to parse. |
- Return values
-
object | New object instanciated from the value. |
- Parameters
-
DateTimeZone | $timezone | Timezone to use when converting dates/times. |
- Exceptions
-
InvalidArgumentException | The given value is invalid for this type of object. |
Definition at line 69 of file AbstractType.php.
References fpoirotte\XRL\Types\AbstractType\$value.
Referenced by fpoirotte\XRL\Decoder\decodeValue().
fpoirotte\XRL\Types\AbstractType::set |
( |
|
$value | ) |
|
|
abstract |
Change the value associated with the object.
- Parameters
-
- Returns
- This method does not return any value.
- Exceptions
-
InvalidArgumentException | The given value is invalid for this type of object. |
fpoirotte\XRL\Types\AbstractType::write |
( |
\XMLWriter |
$writer, |
|
|
\DateTimeZone |
$timezone, |
|
|
|
$stringTag |
|
) |
| |
|
abstract |
Export this object's value to XML.
- Parameters
-
XMLWriter | $writer | Writer the value will be exported to. |
DateTimeZone | $timezone | Timezone to use when exporting dates/times. |
bool | $stringTag | Whether to use <string> tags at all when encoding strings. |
- Returns
- This method does not return any value.
Referenced by fpoirotte\XRL\Types\AbstractType\parse().
The documentation for this class was generated from the following file: