-
Notifications
You must be signed in to change notification settings - Fork 130
Sabre VObject Property Uri
URI property
This object encodes URI values. vCard 2.1 calls these URL.
- Class name: Uri
- Namespace: Sabre\VObject\Property
- Parent class: Sabre\VObject\Property\Text
protected mixed $delimiter = null
- Visibility: protected
protected array $structuredValues = array('N', 'ADR', 'ORG', 'GENDER', 'REQUEST-STATUS')
List of properties that are considered 'structured'.
- Visibility: protected
- This property is defined by Sabre\VObject\Property\Text
public string $name
Property name.
This will contain a string such as DTSTART, SUMMARY, FN.
- Visibility: public
- This property is defined by Sabre\VObject\Property
public string $group
Property group.
This is only used in vcards
- Visibility: public
- This property is defined by Sabre\VObject\Property
public array $parameters = array()
List of parameters
- Visibility: public
- This property is defined by Sabre\VObject\Property
protected mixed $value
Current value
- Visibility: protected
- This property is defined by Sabre\VObject\Property
public \Sabre\VObject\Node $parent
Reference to the parent object, if this is not the top object.
- Visibility: public
- This property is defined by Sabre\VObject\Node
protected \Sabre\VObject\ElementList $iterator = null
Iterator override
- Visibility: protected
- This property is defined by Sabre\VObject\Node
protected \Sabre\VObject\Component $root
The root document
- Visibility: protected
- This property is defined by Sabre\VObject\Node
string Sabre\VObject\Property\Uri::getValueType()
Returns the type of value.
This corresponds to the VALUE= parameter. Every property also has a 'default' valueType.
- Visibility: public
void Sabre\VObject\Property::__construct(\Sabre\VObject\Component $root, string $name, string|array|null $value, array $parameters, string $group)
Creates the generic property.
Parameters must be specified in key=>value syntax.
- Visibility: public
- This method is defined by Sabre\VObject\Property
- $root Sabre\VObject\Component - The root document
- $name string
- $value string|array|null
- $parameters array - List of parameters
- $group string - The vcard property group
void Sabre\VObject\Property::setRawMimeDirValue(string $val)
Sets a raw value coming from a mimedir (iCalendar/vCard) file.
This has been 'unfolded', so only 1 line will be passed. Unescaping is not yet done, but parameters are not included.
- Visibility: public
- This method is abstract.
- This method is defined by Sabre\VObject\Property
- $val string
void Sabre\VObject\Property\Text::setQuotedPrintableValue(string $val)
Sets the value as a quoted-printable encoded string.
- Visibility: public
- This method is defined by Sabre\VObject\Property\Text
- $val string
string Sabre\VObject\Property::getRawMimeDirValue()
Returns a raw mime-dir representation of the value.
- Visibility: public
- This method is abstract.
- This method is defined by Sabre\VObject\Property
array Sabre\VObject\Property::getJsonValue()
Returns the value, in the format it should be encoded for json.
This method must always return an array.
- Visibility: public
- This method is defined by Sabre\VObject\Property
string Sabre\VObject\Node::serialize()
Serializes the node into a mimedir format
- Visibility: public
- This method is abstract.
- This method is defined by Sabre\VObject\Node
void Sabre\VObject\Property::setValue(string|array $value)
Updates the current value.
This may be either a single, or multiple strings in an array.
- Visibility: public
- This method is defined by Sabre\VObject\Property
- $value string|array
string Sabre\VObject\Property::getValue()
Returns the current value.
This method will always return a singular value. If this was a multi-value object, some decision will be made first on how to represent it as a string.
To get the correct multi-value version, use getParts.
- Visibility: public
- This method is defined by Sabre\VObject\Property
void Sabre\VObject\Property::setParts(array $parts)
Sets a multi-valued property.
- Visibility: public
- This method is defined by Sabre\VObject\Property
- $parts array
array Sabre\VObject\Property::getParts()
Returns a multi-valued property.
This method always returns an array, if there was only a single value, it will still be wrapped in an array.
- Visibility: public
- This method is defined by Sabre\VObject\Property
\Sabre\VObject\Node Sabre\VObject\Property::add(string $name, string|null|array $value)
Adds a new parameter, and returns the new item.
If a parameter with same name already existed, the values will be combined.
- Visibility: public
- This method is defined by Sabre\VObject\Property
- $name string
- $value string|null|array
array Sabre\VObject\Property::parameters()
Returns an iterable list of children
- Visibility: public
- This method is defined by Sabre\VObject\Property
array Sabre\VObject\Node::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.
- Visibility: public
- This method is abstract.
- This method is defined by Sabre\VObject\Node
string Sabre\VObject\Property::__toString()
Called when this object is being cast to a string.
If the property only had a single value, you will get just that. In the case the property had multiple values, the contents will be escaped and combined with ,.
- Visibility: public
- This method is defined by Sabre\VObject\Property
bool Sabre\VObject\Node::offsetExists(int $offset)
Checks if an item exists through ArrayAccess.
This method just forwards the request to the inner iterator
- Visibility: public
- This method is defined by Sabre\VObject\Node
- $offset int
mixed Sabre\VObject\Node::offsetGet(int $offset)
Gets an item through ArrayAccess.
This method just forwards the request to the inner iterator
- Visibility: public
- This method is defined by Sabre\VObject\Node
- $offset int
void Sabre\VObject\Node::offsetSet(int $offset, mixed $value)
Sets an item through ArrayAccess.
This method just forwards the request to the inner iterator
- Visibility: public
- This method is defined by Sabre\VObject\Node
- $offset int
- $value mixed
void Sabre\VObject\Node::offsetUnset(int $offset)
Sets an item through ArrayAccess.
This method just forwards the request to the inner iterator
- Visibility: public
- This method is defined by Sabre\VObject\Node
- $offset int
void Sabre\VObject\Property::__clone()
This method is automatically called when the object is cloned.
Specifically, this will ensure all child elements are also cloned.
- Visibility: public
- This method is defined by Sabre\VObject\Property
array Sabre\VObject\Node::validate(int $options)
Validates the node for correctness.
The following options are supported: - Node::REPAIR - If something is broken, and automatic repair may be attempted.
An array is returned with warnings.
Every item in the array has the following properties: * level - (number between 1 and 3 with severity information) * message - (human readable message) * node - (reference to the offending node)
- Visibility: public
- This method is defined by Sabre\VObject\Node
- $options int
\Sabre\VObject\ElementList Sabre\VObject\Node::getIterator()
Returns the iterator for this object
- Visibility: public
- This method is defined by Sabre\VObject\Node
void Sabre\VObject\Node::setIterator(\Sabre\VObject\ElementList $iterator)
Sets the overridden iterator
Note that this is not actually part of the iterator interface
- Visibility: public
- This method is defined by Sabre\VObject\Node
- $iterator Sabre\VObject\ElementList
int Sabre\VObject\Node::count()
Returns the number of elements
- Visibility: public
- This method is defined by Sabre\VObject\Node