ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
__construct (Document $root, $name, $value=null) | |
Sets up the object. More... | |
setValue ($value) | |
Updates the current value. More... | |
getValue () | |
Returns the current value. More... | |
setParts (array $value) | |
Sets multiple values for this parameter. More... | |
getParts () | |
Returns all values for this parameter. More... | |
addValue ($part) | |
Adds a value to this parameter. More... | |
has ($value) | |
Checks if this parameter contains the specified value. 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... | |
__toString () | |
Called when this object is being cast to a string. More... | |
getIterator () | |
Returns the iterator for this object. 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... | |
Static Public Member Functions | |
static | guessParameterNameByValue ($value) |
Try to guess property name by value, can be used for vCard 2.1 nameless parameters. More... | |
Data Fields | |
$name | |
$noName = false | |
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 Attributes | |
$value | |
Protected Attributes inherited from Sabre\VObject\Node | |
$iterator = null | |
$root | |
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.
Definition at line 20 of file Parameter.php.
Sabre\VObject\Parameter::__construct | ( | Document | $root, |
$name, | |||
$value = null |
|||
) |
Sets up the object.
It's recommended to use the create:: factory method instead.
string | $name | |
string | $value |
Definition at line 53 of file Parameter.php.
References Sabre\VObject\Parameter\$name, Sabre\VObject\Node\$root, Sabre\VObject\Parameter\$value, and Sabre\VObject\Parameter\setValue().
Sabre\VObject\Parameter::__toString | ( | ) |
Called when this object is being cast to a string.
Definition at line 374 of file Parameter.php.
References Sabre\VObject\Parameter\getValue().
Sabre\VObject\Parameter::addValue | ( | $part | ) |
Adds a value to this parameter.
If the argument is specified as an array, all items will be added to the parameter value list.
string | array | $part |
Definition at line 249 of file Parameter.php.
Sabre\VObject\Parameter::getIterator | ( | ) |
Returns the iterator for this object.
Definition at line 385 of file Parameter.php.
References Sabre\VObject\Node\$iterator.
Sabre\VObject\Parameter::getParts | ( | ) |
Returns all values for this parameter.
If there were no values, an empty array will be returned.
Definition at line 227 of file Parameter.php.
References Sabre\VObject\Parameter\$value.
Referenced by Sabre\VObject\Parameter\serialize().
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 concatenate them (separated by comma).
Definition at line 197 of file Parameter.php.
References Sabre\VObject\Parameter\$value.
Referenced by Sabre\VObject\Parameter\__toString().
|
static |
Try to guess property name by value, can be used for vCard 2.1 nameless parameters.
Figuring out what the name should have been. Note that a ton of these are rather silly in 2014 and would probably rarely be used, but we like to be complete.
string | $value |
Definition at line 85 of file Parameter.php.
References Sabre\VObject\Parameter\$name, and Sabre\VObject\Parameter\$value.
Referenced by Sabre\VObject\Property\add().
Sabre\VObject\Parameter::has | ( | $value | ) |
Checks if this parameter contains the specified value.
This is a case-insensitive match. It makes sense to call this for for instance the TYPE parameter, to see if it contains a keyword such as 'WORK' or 'FAX'.
string | $value |
Definition at line 270 of file Parameter.php.
References Sabre\VObject\Parameter\$value.
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.
Definition at line 347 of file Parameter.php.
References Sabre\VObject\Parameter\$value.
Sabre\VObject\Parameter::serialize | ( | ) |
Turns the object back into a serialized blob.
Definition at line 284 of file Parameter.php.
References Sabre\VObject\Parameter\$noName, $out, Sabre\VObject\Parameter\$value, Sabre\VObject\Node\count(), Sabre\VObject\Parameter\getParts(), and Sabre\VObject\Document\VCARD21.
Sabre\VObject\Parameter::setParts | ( | array | $value | ) |
Sets multiple values for this parameter.
array | $value |
Definition at line 214 of file Parameter.php.
References Sabre\VObject\Parameter\$value.
Sabre\VObject\Parameter::setValue | ( | $value | ) |
Updates the current value.
This may be either a single, or multiple strings in an array.
string | array | $value |
Definition at line 183 of file Parameter.php.
References Sabre\VObject\Parameter\$value.
Referenced by Sabre\VObject\Parameter\__construct().
Sabre\VObject\Parameter::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 361 of file Parameter.php.
References Sabre\VObject\Parameter\$value.
Sabre\VObject\Parameter::$name |
Definition at line 27 of file Parameter.php.
Referenced by Sabre\VObject\Parameter\__construct(), and Sabre\VObject\Parameter\guessParameterNameByValue().
Sabre\VObject\Parameter::$noName = false |
Definition at line 36 of file Parameter.php.
Referenced by Sabre\VObject\Parameter\serialize().
|
protected |
Definition at line 43 of file Parameter.php.
Referenced by Sabre\VObject\Parameter\__construct(), Sabre\VObject\Parameter\getParts(), Sabre\VObject\Parameter\getValue(), Sabre\VObject\Parameter\guessParameterNameByValue(), Sabre\VObject\Parameter\has(), Sabre\VObject\Parameter\jsonSerialize(), Sabre\VObject\Parameter\serialize(), Sabre\VObject\Parameter\setParts(), Sabre\VObject\Parameter\setValue(), and Sabre\VObject\Parameter\xmlSerialize().