ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
static | getDocumentType () |
Returns the current document type. More... | |
convert ($target) | |
Converts the document to a different vcard version. More... | |
validate ($options=0) | |
Validates the node for correctness. More... | |
getValidationRules () | |
preferred ($propertyName) | |
Returns a preferred field. More... | |
getByType ($propertyName, $type) | |
Returns a property with a specific TYPE value (ADR, TEL, or EMAIL). 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... | |
getClassNameForPropertyName ($propertyName) | |
Returns the default class for a property name. More... | |
Public Member Functions inherited from Sabre\VObject\Document | |
__construct () | |
Creates a new document. More... | |
getDocumentType () | |
Returns the current document type. More... | |
create ($name) | |
Creates a new component or property. More... | |
createComponent ($name, array $children=null, $defaults=true) | |
Creates a new component. More... | |
createProperty ($name, $value=null, array $parameters=null, $valueType=null) | |
Factory method for creating new properties. More... | |
getClassNameForPropertyValue ($valueParam) | |
This method returns a full class-name for a value parameter. More... | |
getClassNameForPropertyName ($propertyName) | |
Returns the default class for a property name. More... | |
Public Member Functions inherited from Sabre\VObject\Component | |
__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 | |
const | DEFAULT_VERSION = self::VCARD21 |
VCards with version 2.1, 3.0 and 4.0 are found. More... | |
Data Fields inherited from Sabre\VObject\Document | |
const | UNKNOWN = 1 |
Unknown document type. More... | |
const | VCALENDAR10 = 2 |
vCalendar 1.0. More... | |
const | ICALENDAR20 = 3 |
iCalendar 2.0. More... | |
const | VCARD21 = 4 |
vCard 2.1. More... | |
const | VCARD30 = 5 |
vCard 3.0. More... | |
const | VCARD40 = 6 |
vCard 4.0. More... | |
Data Fields inherited from Sabre\VObject\Component | |
$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 | |
Static Public Attributes | |
static | $defaultName = 'VCARD' |
static | $componentMap |
static | $valueMap |
static | $propertyMap |
Static Public Attributes inherited from Sabre\VObject\Document | |
static | $defaultName |
static | $propertyMap = [] |
static | $componentMap = [] |
static | $valueMap = [] |
Protected Member Functions | |
getDefaults () | |
This method should return a list of default property values. More... | |
Protected Member Functions inherited from Sabre\VObject\Component | |
getDefaults () | |
This method should return a list of default property values. More... | |
Private Attributes | |
$version = null | |
Additional Inherited Members | |
Protected Attributes inherited from Sabre\VObject\Component | |
$children = [] | |
Protected Attributes inherited from Sabre\VObject\Node | |
$iterator = null | |
$root | |
The VCard component.
This component represents the BEGIN:VCARD and END:VCARD found in every vcard.
Sabre\VObject\Component\VCard::convert | ( | $target | ) |
Converts the document to a different vcard version.
Use one of the VCARD constants for the target. This method will return a copy of the vcard in the new version.
At the moment the only supported conversion is from 3.0 to 4.0.
If input and output version are identical, a clone is returned.
int | $target |
Definition at line 188 of file VCard.php.
References $target.
Sabre\VObject\Component\VCard::getByType | ( | $propertyName, | |
$type | |||
) |
Returns a property with a specific TYPE value (ADR, TEL, or EMAIL).
This function will return null if the property does not exist. If there are multiple properties with the same TYPE value, only one will be returned.
string | $propertyName | |
string | $type |
Definition at line 429 of file VCard.php.
References $type, and Sabre\VObject\Component\select().
Sabre\VObject\Component\VCard::getClassNameForPropertyName | ( | $propertyName | ) |
Returns the default class for a property name.
string | $propertyName |
Definition at line 546 of file VCard.php.
References Sabre\VObject\Component\VCard\getDocumentType().
|
protected |
This method should return a list of default property values.
Definition at line 442 of file VCard.php.
References Sabre\VObject\UUIDUtil\getUUID(), and Sabre\VObject\Version\VERSION.
static Sabre\VObject\Component\VCard::getDocumentType | ( | ) |
Returns the current document type.
Definition at line 147 of file VCard.php.
References Sabre\VObject\Component\VCard\$version.
Referenced by Sabre\VObject\Component\VCard\getClassNameForPropertyName().
Sabre\VObject\Component\VCard::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 458 of file VCard.php.
References Sabre\VObject\Component\children().
Sabre\VObject\Component\VCard::preferred | ( | $propertyName | ) |
Returns a preferred field.
VCards can indicate wether a field such as ADR, TEL or EMAIL is preferred by specifying TYPE=PREF (vcard 2.1, 3) or PREF=x (vcard 4, x being a number between 1 and 100).
If neither of those parameters are specified, the first is returned, if a field with that name does not exist, null is returned.
string | $fieldName |
Definition at line 395 of file VCard.php.
References Sabre\VObject\Component\select().
Sabre\VObject\Component\VCard::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 |
Definition at line 224 of file VCard.php.
References $message, PHPMailer\PHPMailer\$options, Sabre\VObject\Component\VCard\$version, $warnings, Sabre\VObject\Node\count(), Sabre\VObject\UUIDUtil\getUUID(), and Sabre\VObject\Component\select().
Sabre\VObject\Component\VCard::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 483 of file VCard.php.
References Sabre\VObject\Component\children().
|
static |
Definition at line 41 of file VCard.php.
Referenced by Sabre\VObject\Parser\MimeDir\parseDocument().
|
static |
|
static |
|
static |
|
private |
Definition at line 34 of file VCard.php.
Referenced by Sabre\VObject\Component\VCard\getDocumentType(), and Sabre\VObject\Component\VCard\validate().
const Sabre\VObject\Component\VCard::DEFAULT_VERSION = self::VCARD21 |