ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Data Structures | |
class | AvailableTest |
We use RFCxxx has a placeholder for the https://tools.ietf.org/html/draft-daboo-calendar-availability-05 name. More... | |
class | VAlarmTest |
class | VAvailabilityTest |
We use RFCxxx has a placeholder for the https://tools.ietf.org/html/draft-daboo-calendar-availability-05 name. More... | |
class | VCalendarTest |
class | VCardTest |
class | VEventTest |
class | VFreeBusyTest |
class | VJournalTest |
class | VTimeZoneTest |
class | VTodoTest |
Public Member Functions | |
__construct (Document $root, $name, array $children=[], $defaults=true) | |
Creates a new component. More... | |
add () | |
Adds a new property or component, and returns the new item. More... | |
remove ($item) | |
This method removes a component or property from this component. More... | |
children () | |
Returns a flat list of all the properties and components in this component. More... | |
getComponents () | |
This method only returns a list of sub-components. More... | |
select ($name) | |
Returns an array with elements that match the specified name. More... | |
serialize () | |
Turns the object back into a serialized blob. 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... | |
__isset ($name) | |
This method checks if a sub-element with the specified name exists. More... | |
__set ($name, $value) | |
Using the setter method you can add properties or subcomponents. More... | |
__unset ($name) | |
Removes all properties and components within this component with the specified name. More... | |
__clone () | |
This method is automatically called when the object is cloned. More... | |
getValidationRules () | |
validate ($options=0) | |
Validates the node for correctness. More... | |
destroy () | |
Call this method on a document if you're done using it. More... | |
Public Member Functions inherited from Sabre\VObject\Node | |
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... | |
Public Member Functions inherited from Sabre\Xml\XmlSerializable | |
xmlSerialize (Writer $writer) | |
The xmlSerialize method is called during xml writing. More... | |
Data Fields | |
$name | |
Data Fields inherited from Sabre\VObject\Node | |
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 Member Functions | |
getDefaults () | |
This method should return a list of default property values. More... | |
Protected Attributes | |
$children = [] | |
Protected Attributes inherited from Sabre\VObject\Node | |
$iterator = null | |
$root | |
A component represents a group of properties, such as VCALENDAR, VEVENT, or VCARD.
Definition at line 17 of file Component.php.
Sabre\VObject\Component::__construct | ( | Document | $root, |
$name, | |||
array | $children = [] , |
||
$defaults = true |
|||
) |
Creates a new component.
You can specify the children either in key=>value syntax, in which case properties will automatically be created, or you can just pass a list of Component and Property object.
By default, a set of sensible values will be added to the component. For an iCalendar object, this may be something like CALSCALE:GREGORIAN. To ensure that this does not happen, set $defaults to false.
Document | $root | |
string | $name | such as VCALENDAR, VEVENT. |
array | $children | |
bool | $defaults |
Definition at line 53 of file Component.php.
References Sabre\VObject\Component\$children, $key, $list, Sabre\VObject\Component\$name, $nodes, Sabre\VObject\Node\$root, Sabre\VObject\Component\add(), and Sabre\VObject\Component\getDefaults().
Sabre\VObject\Component::__clone | ( | ) |
This method is automatically called when the object is cloned.
Specifically, this will ensure all child elements are also cloned.
Definition at line 543 of file Component.php.
References $key, Sabre\VObject\Node\$root, and Sabre\VObject\Component\children().
Sabre\VObject\Component::__isset | ( | $name | ) |
This method checks if a sub-element with the specified name exists.
string | $name |
Definition at line 489 of file Component.php.
References Sabre\VObject\Component\$name, Sabre\VObject\Node\count(), and Sabre\VObject\Component\select().
Sabre\VObject\Component::__set | ( | $name, | |
$value | |||
) |
Using the setter method you can add properties or subcomponents.
You can either pass a Component, Property object, or a string to automatically create a Property.
If the item already exists, it will be removed. If you want to add a new item with the same name, always use the add() method.
string | $name | |
mixed | $value |
Definition at line 510 of file Component.php.
References Sabre\VObject\Component\$name, and Sabre\VObject\Component\add().
Sabre\VObject\Component::__unset | ( | $name | ) |
Removes all properties and components within this component with the specified name.
string | $name |
Definition at line 529 of file Component.php.
References Sabre\VObject\Component\$name.
Sabre\VObject\Component::add | ( | ) |
Adds a new property or component, and returns the new item.
This method has 3 possible signatures:
add(Component $comp) // Adds a new component add(Property $prop) // Adds a new property add($name, $value, array $parameters = []) // Adds a new property add($name, array $children = []) // Adds a new component by name.
Definition at line 109 of file Component.php.
References Sabre\VObject\Component\$name, and Sabre\VObject\Component\children().
Referenced by Sabre\VObject\Component\__construct(), Sabre\VObject\Component\__set(), Sabre\VObject\Parser\XML\createProperty(), Sabre\VObject\Parser\XML\parseComponent(), Sabre\VObject\ITip\Broker\parseEventForAttendee(), and Sabre\VObject\Component\validate().
Sabre\VObject\Component::children | ( | ) |
Returns a flat list of all the properties and components in this component.
Definition at line 187 of file Component.php.
References $result.
Referenced by Sabre\VObject\Component\__clone(), Sabre\VObject\Component\add(), Sabre\VObject\Component\destroy(), Sabre\VObject\Component\VCalendar\expand(), Sabre\VObject\Component\VCalendar\getBaseComponent(), Sabre\VObject\Component\VCalendar\getBaseComponents(), Sabre\VObject\Component\getComponents(), Sabre\VObject\Component\jsonSerialize(), Sabre\VObject\Component\VCard\jsonSerialize(), Sabre\VObject\Component\remove(), Sabre\VObject\Component\select(), Sabre\VObject\Component\serialize(), Sabre\VObject\Cli\serializeComponent(), Sabre\VObject\Component\VCalendar\validate(), Sabre\VObject\Component\validate(), Sabre\VObject\Component\xmlSerialize(), and Sabre\VObject\Component\VCard\xmlSerialize().
Sabre\VObject\Component::destroy | ( | ) |
Call this method on a document if you're done using it.
It's intended to remove all circular references, so PHP can easily clean it up.
Definition at line 703 of file Component.php.
References Sabre\VObject\Component\children().
Sabre\VObject\Component::getComponents | ( | ) |
This method only returns a list of sub-components.
Properties are ignored.
Definition at line 203 of file Component.php.
References $result, and Sabre\VObject\Component\children().
Referenced by Sabre\VObject\Component\VCalendar\getByUID().
|
protected |
This method should return a list of default property values.
Definition at line 440 of file Component.php.
References Sabre\VObject\Component\$name, Sabre\VObject\Node\count(), and Sabre\VObject\Component\select().
Referenced by Sabre\VObject\Component\__construct(), and Sabre\VObject\Component\validate().
Sabre\VObject\Component::getValidationRules | ( | ) |
Definition at line 577 of file Component.php.
Referenced by Sabre\VObject\Component\validate().
Sabre\VObject\Component::jsonSerialize | ( | ) |
This method returns an array, with the representation as it should be encoded in JSON.
This is used to create jCard or jCal documents.
Definition at line 360 of file Component.php.
References Sabre\VObject\Component\children().
Sabre\VObject\Component::remove | ( | $item | ) |
This method removes a component or property from this component.
You can either specify the item by name (like DTSTART), in which case all properties/components with that name will be removed, or you can pass an instance of a property or component, in which case only that exact item will be removed.
Definition at line 151 of file Component.php.
References Sabre\VObject\Component\children(), and Sabre\VObject\Component\select().
Sabre\VObject\Component::select | ( | $name | ) |
Returns an array with elements that match the specified name.
This function is also aware of MIME-Directory groups (as they appear in vcards). This means that if a property is grouped as "HOME.EMAIL", it will also be returned when searching for just "EMAIL". If you want to search for a property in a specific group, you can select on the entire string ("HOME.EMAIL"). If you want to search on a specific property that has not been assigned a group, specify ".EMAIL".
string | $name |
Definition at line 231 of file Component.php.
References Sabre\VObject\Component\$name, $result, and Sabre\VObject\Component\children().
Referenced by Sabre\VObject\Component\__isset(), Sabre\VObject\Component\VCalendar\getBaseComponent(), Sabre\VObject\Component\VCalendar\getBaseComponents(), Sabre\VObject\Component\VCard\getByType(), Sabre\VObject\Component\getDefaults(), Sabre\VObject\Component\VFreeBusy\isFree(), Sabre\VObject\ITip\Broker\parseEventForOrganizer(), Sabre\VObject\Component\VCard\preferred(), Sabre\VObject\Component\remove(), Sabre\VObject\Component\VCard\validate(), and Sabre\VObject\Component\validate().
Sabre\VObject\Component::serialize | ( | ) |
Turns the object back into a serialized blob.
Gives a component a 'score' for sorting purposes.
This is solely used by the childrenSort method.
A higher score means the item will be lower in the list. To avoid score collisions, each "score category" has a reasonable space to accomodate elements. The $key is added to the $score to preserve the original relative order of elements.
int | $key | |
array | $array |
Definition at line 284 of file Component.php.
References Sabre\VObject\Component\$children, $key, and Sabre\VObject\Component\children().
Referenced by Sabre\VObject\Cli\repair(), and Sabre\VObject\Writer\write().
Sabre\VObject\Component::validate | ( | $options = 0 | ) |
Validates the node for correctness.
The following options are supported: Node::REPAIR - May attempt to automatically repair the problem. Node::PROFILE_CARDDAV - Validate the vCard for CardDAV purposes. Node::PROFILE_CALDAV - Validate the iCalendar for CalDAV purposes.
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 - A warning. 3 - An error.
int | $options |
Definition at line 607 of file Component.php.
References $messages, Sabre\VObject\Component\$name, PHPMailer\PHPMailer\$options, $rule, Sabre\VObject\Component\add(), Sabre\VObject\Component\children(), Sabre\VObject\Node\count(), Sabre\VObject\Component\getDefaults(), Sabre\VObject\Component\getValidationRules(), and Sabre\VObject\Component\select().
Referenced by Sabre\VObject\Cli\repair(), and Sabre\VObject\Cli\validate().
Sabre\VObject\Component::xmlSerialize | ( | Xml\Writer | $writer | ) |
This method serializes the data into XML.
This is used to create xCard or xCal documents.
Xml\Writer | $writer | XML writer. |
Definition at line 391 of file Component.php.
References Sabre\VObject\Component\children().
Referenced by Sabre\VObject\Writer\writeXml().
|
protected |
Definition at line 33 of file Component.php.
Referenced by Sabre\VObject\Component\__construct(), Sabre\VObject\Document\createComponent(), and Sabre\VObject\Component\serialize().
Sabre\VObject\Component::$name |
Definition at line 26 of file Component.php.
Referenced by Sabre\VObject\Component\__construct(), Sabre\VObject\Component\__isset(), Sabre\VObject\Component\__set(), Sabre\VObject\Component\__unset(), Sabre\VObject\Component\add(), Sabre\VObject\Document\create(), Sabre\VObject\Document\createComponent(), Sabre\VObject\Document\createProperty(), Sabre\VObject\Component\getDefaults(), Sabre\VObject\Component\select(), and Sabre\VObject\Component\validate().