ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
A node is the root class for every element in an iCalendar of vCard object. More...
Public Member Functions | |
serialize () | |
Serializes the node into a mimedir format. More... | |
jsonSerialize () | |
This method returns an array, with the representation as it should be encoded in JSON. More... | |
xmlSerialize (Xml\Writer $writer) | |
This method serializes the data into XML. More... | |
destroy () | |
Call this method on a document if you're done using it. More... | |
getIterator () | |
Returns the iterator for this object. More... | |
setIterator (ElementList $iterator) | |
Sets the overridden iterator. More... | |
validate ($options=0) | |
Validates the node for correctness. More... | |
count () | |
Returns the number of elements. More... | |
offsetExists ($offset) | |
Checks if an item exists through ArrayAccess. More... | |
offsetGet ($offset) | |
Gets an item through ArrayAccess. More... | |
offsetSet ($offset, $value) | |
Sets an item through ArrayAccess. More... | |
offsetUnset ($offset) | |
Sets an item through ArrayAccess. More... | |
![]() | |
xmlSerialize (Writer $writer) | |
The xmlSerialize method is called during xml writing. More... | |
Data Fields | |
const | REPAIR = 1 |
The following constants are used by the validate() method. More... | |
const | PROFILE_CARDDAV = 2 |
If this option is set, the validator will operate on the vcards on the assumption that the vcards need to be valid for CardDAV. More... | |
const | PROFILE_CALDAV = 4 |
If this option is set, the validator will operate on iCalendar objects on the assumption that the vcards need to be valid for CalDAV. More... | |
$parent | |
Protected Attributes | |
$iterator = null | |
$root | |
A node is the root class for every element in an iCalendar of vCard object.
Sabre\VObject\Node::count | ( | ) |
Returns the number of elements.
Definition at line 177 of file Node.php.
References Sabre\VObject\Node\getIterator().
Referenced by Sabre\VObject\Document\__construct(), Sabre\VObject\Component\__isset(), Sabre\VObject\Component\VCardTest\assertValidateResult(), Sabre\VObject\Component\VCalendarTest\assertValidateResult(), Sabre\VObject\Component\getDefaults(), Sabre\VObject\Property\getValue(), Sabre\VObject\Property\Text\serialize(), Sabre\VObject\Parameter\serialize(), Sabre\VObject\Property\Time\setJsonValue(), Sabre\VObject\Property\setJsonValue(), Sabre\VObject\Property\VCard\DateAndOrTime\setParts(), Sabre\VObject\Property\Binary\setValue(), Sabre\VObject\Property\CompoundTest\testGetParts(), Sabre\VObject\Property\CompoundTest\testGetPartsNull(), Sabre\VObject\Property\CompoundTest\testSetParts(), Sabre\CalDAV\ICalendar\DateTimeTest\testValidate(), Sabre\VObject\Component\VCalendarTest\testValidateDoubleCalScale(), Sabre\VObject\Component\VCalendarTest\testValidateDoubleMethod(), Sabre\VObject\Property\TextTest\testValidateMinimumPropValue(), Sabre\VObject\Component\VCalendarTest\testValidateNoProdId(), Sabre\VObject\Component\VCalendarTest\testValidateNoVersion(), Sabre\VObject\Component\VCalendarTest\testValidateOneMasterEvent(), Sabre\CalDAV\ICalendar\RecurTest\testValidateStripEmpties(), Sabre\CalDAV\ICalendar\RecurTest\testValidateStripNoFreq(), Sabre\VObject\Component\VCalendarTest\testValidateTwoMasterEvents(), Sabre\VObject\Component\VCalendarTest\testValidateWrongVersion(), Sabre\VObject\Component\VCard\validate(), Sabre\VObject\Property\Text\validate(), Sabre\VObject\Component\VCalendar\validate(), and Sabre\VObject\Component\validate().
Sabre\VObject\Node::destroy | ( | ) |
Sabre\VObject\Node::getIterator | ( | ) |
Returns the iterator for this object.
Definition at line 115 of file Node.php.
References Sabre\VObject\Node\$iterator.
Referenced by Sabre\VObject\Node\count(), Sabre\VObject\Node\offsetExists(), Sabre\VObject\Node\offsetGet(), Sabre\VObject\Node\offsetSet(), and Sabre\VObject\Node\offsetUnset().
|
abstract |
This method returns an array, with the representation as it should be encoded in JSON.
This is used to create jCard or jCal documents.
Sabre\VObject\Node::offsetExists | ( | $offset | ) |
Checks if an item exists through ArrayAccess.
This method just forwards the request to the inner iterator
int | $offset |
Definition at line 198 of file Node.php.
References Sabre\VObject\Node\$iterator, and Sabre\VObject\Node\getIterator().
Sabre\VObject\Node::offsetGet | ( | $offset | ) |
Gets an item through ArrayAccess.
This method just forwards the request to the inner iterator
int | $offset |
Definition at line 214 of file Node.php.
References Sabre\VObject\Node\$iterator, and Sabre\VObject\Node\getIterator().
Sabre\VObject\Node::offsetSet | ( | $offset, | |
$value | |||
) |
Sets an item through ArrayAccess.
This method just forwards the request to the inner iterator
int | $offset | |
mixed | $value |
Definition at line 231 of file Node.php.
References Sabre\VObject\Node\$iterator, and Sabre\VObject\Node\getIterator().
Sabre\VObject\Node::offsetUnset | ( | $offset | ) |
Sets an item through ArrayAccess.
This method just forwards the request to the inner iterator
int | $offset |
Definition at line 252 of file Node.php.
References Sabre\VObject\Node\$iterator, and Sabre\VObject\Node\getIterator().
|
abstract |
Serializes the node into a mimedir format.
Sabre\VObject\Node::setIterator | ( | ElementList | $iterator | ) |
Sets the overridden iterator.
Note that this is not actually part of the iterator interface
ElementList | $iterator |
Definition at line 134 of file Node.php.
References Sabre\VObject\Node\$iterator.
Sabre\VObject\Node::validate | ( | $options = 0 | ) |
Validates the node for correctness.
The following options are supported: Node::REPAIR - May attempt to automatically repair the problem.
This method returns an array with detected problems. Every element has the following properties:
The level means: 1 - The issue was repaired (only happens if REPAIR was turned on) 2 - An inconsequential issue 3 - A severe issue.
int | $options |
|
abstract |
|
protected |
Definition at line 59 of file Node.php.
Referenced by Sabre\VObject\Node\getIterator(), Sabre\VObject\Parameter\getIterator(), Sabre\VObject\Node\offsetExists(), Sabre\VObject\Node\offsetGet(), Sabre\VObject\Node\offsetSet(), Sabre\VObject\Node\offsetUnset(), and Sabre\VObject\Node\setIterator().
Sabre\VObject\Node::$parent |
Definition at line 52 of file Node.php.
Referenced by Sabre\VObject\Component\VAlarm\getEffectiveTriggerTime().
|
protected |
Definition at line 66 of file Node.php.
Referenced by Sabre\VObject\Component\__clone(), Sabre\VObject\Component\__construct(), Sabre\VObject\Parameter\__construct(), and Sabre\VObject\Property\__construct().
const Sabre\VObject\Node::PROFILE_CALDAV = 4 |
If this option is set, the validator will operate on iCalendar objects on the assumption that the vcards need to be valid for CalDAV.
This means for example that calendars can only contain objects with identical component types and UIDs.
Definition at line 45 of file Node.php.
Referenced by Sabre\VObject\Component\VCalendarTest\testCalDAVMETHOD(), Sabre\VObject\Component\VCalendarTest\testCalDAVMultiComponent(), Sabre\VObject\Component\VCalendarTest\testCalDAVMultiUID(), Sabre\VObject\Component\VCalendarTest\testCalDAVNoComponents(), and Sabre\CalDAV\Plugin\validateICalendar().
const Sabre\VObject\Node::PROFILE_CARDDAV = 2 |
If this option is set, the validator will operate on the vcards on the assumption that the vcards need to be valid for CardDAV.
This means for example that the UID is required, whereas it is not for regular vcards.
Definition at line 36 of file Node.php.
Referenced by Sabre\CardDAV\Plugin\validateVCard().
const Sabre\VObject\Node::REPAIR = 1 |
The following constants are used by the validate() method.
If REPAIR is set, the validator will attempt to repair any broken data (if possible).
Definition at line 27 of file Node.php.
Referenced by Sabre\VObject\Cli\repair(), Sabre\VObject\Component\VCardTest\testValidate(), Sabre\CalDAV\ICalendar\RecurTest\testValidateAllInvalidByWeekNoWithRepair(), Sabre\CalDAV\ICalendar\RecurTest\testValidateAllInvalidByYearDayWithRepair(), Sabre\VObject\PropertyTest\testValidateBadPropertyName(), Sabre\VObject\PropertyTest\testValidateControlChars(), Sabre\CalDAV\ICalendar\RecurTest\testValidateInvalidByMonthRruleMultipleWithRepair(), Sabre\CalDAV\ICalendar\RecurTest\testValidateInvalidByMonthRruleValue14WithRepair(), Sabre\CalDAV\ICalendar\RecurTest\testValidateInvalidByMonthRruleWithRepair(), Sabre\CalDAV\ICalendar\RecurTest\testValidateInvalidByMonthRruleWithRepair2(), Sabre\CalDAV\ICalendar\RecurTest\testValidateInvalidByWeekNoWithRepair(), Sabre\CalDAV\ICalendar\RecurTest\testValidateInvalidByYearDayWithRepair(), Sabre\VObject\Property\TextTest\testValidateMinimumPropValue(), Sabre\CalDAV\ICalendar\RecurTest\testValidateMultipleInvalidByWeekNoWithRepair(), Sabre\CalDAV\ICalendar\RecurTest\testValidateMultipleInvalidByYearDayWithRepair(), Sabre\VObject\PropertyTest\testValidateNonUTF8(), Sabre\CalDAV\ICalendar\RecurTest\testValidateOneOfManyInvalidByMonthRruleWithRepair(), Sabre\VObject\ComponentTest\testValidateRepair(), Sabre\VObject\ComponentTest\testValidateRepairShouldDeduplicatePropertiesWhenValuesAndParametersAreEqual(), Sabre\VObject\ComponentTest\testValidateRepairShouldDeduplicatePropertiesWhenValuesAreEqual(), Sabre\VObject\ComponentTest\testValidateRepairShouldNotDeduplicatePropertiesWhenParametersDiffer(), Sabre\VObject\ComponentTest\testValidateRepairShouldNotDeduplicatePropertiesWhenValuesDiffer(), Sabre\CalDAV\ICalendar\RecurTest\testValidateRruleBySecondZero(), Sabre\CalDAV\ICalendar\RecurTest\testValidateValidByWeekNoWithRepair(), Sabre\CalDAV\ICalendar\RecurTest\testValidateValidByYearDayWithRepair(), Sabre\CalDAV\Plugin\validateICalendar(), and Sabre\CardDAV\Plugin\validateVCard().