-
Notifications
You must be signed in to change notification settings - Fork 132
Sabre VObject Parameter
VObject Parameter
This class represents a parameter. A parameter is always tied to a property. In the case of: DTSTART;VALUE=DATE:20101108 VALUE=DATE would be the parameter name and value.
- Class name: Parameter
- Namespace: Sabre\VObject
- Parent class: Sabre\VObject\Node
public string $name
Parameter name
- Visibility: public
protected string $value
Parameter value
- Visibility: protected
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
mixed Sabre\VObject\Parameter::__construct(\Sabre\VObject\Document $root, string $name, string $value)
Sets up the object.
It's recommended to use the create:: factory method instead.
- Visibility: public
- $root Sabre\VObject\Document
- $name string
- $value string
void Sabre\VObject\Parameter::setValue(string|array $value)
Updates the current value.
This may be either a single, or multiple strings in an array.
- Visibility: public
- $value string|array
string|null Sabre\VObject\Parameter::getValue()
Returns the current value
This method will always return a string, or null. If there were multiple values, it will automatically concatinate them (separated by comma).
- Visibility: public
void Sabre\VObject\Parameter::setParts(array $value)
Sets multiple values for this parameter.
- Visibility: public
- $value array
array Sabre\VObject\Parameter::getParts()
Returns all values for this parameter.
If there were no values, an empty array will be returned.
- Visibility: public
void Sabre\VObject\Parameter::addValue(string $part)
Adds a value to this parameter
- Visibility: public
- $part string
string Sabre\VObject\Parameter::serialize()
Turns the object back into a serialized blob.
- Visibility: public
array Sabre\VObject\Parameter::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
string Sabre\VObject\Parameter::__toString()
Called when this object is being cast to a string
- Visibility: public
\Sabre\VObject\ElementList Sabre\VObject\Parameter::getIterator()
Returns the iterator for this object
- Visibility: public
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
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
int Sabre\VObject\Node::count()
Returns the number of elements
- Visibility: public
- This method is defined by Sabre\VObject\Node
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