79 if (!is_null($parts[
'hour'])) {
80 $timeStr .= $parts[
'hour'];
82 if (!is_null($parts[
'minute'])) {
92 if (!is_null($parts[
'minute'])) {
93 $timeStr .= $parts[
'minute'];
95 if (!is_null($parts[
'second'])) {
99 if (isset($parts[
'second'])) {
106 if (!is_null($parts[
'second'])) {
107 $timeStr .= $parts[
'second'];
111 if (!is_null($parts[
'timezone'])) {
112 if ($parts[
'timezone'] ===
'Z') {
116 preg_replace(
'/([0-9]{2})([0-9]{2})$/',
'$1:$2', $parts[
'timezone']);
136 return str_replace(
':',
'',
$value);
140 parent::setXmlValue(
$value);
An exception for terminatinating execution or to throw for unit testing.
static parseVCardTime($date)
This method parses a vCard TIME value.
count()
Returns the number of elements.
setJsonValue(array $value)
Sets the JSON value, as it would appear in a jCard or jCal object.
getJsonValue()
Returns the value, in the format it should be encoded for json.
setXmlValue(array $value)
Hydrate data from a XML subtree, as it would appear in a xCard or xCal object.
getValueType()
Returns the type of value.
getValue()
Returns the current value.
setValue($value)
Updates the current value.