-
Notifications
You must be signed in to change notification settings - Fork 132
Sabre VObject Node
A node is the root class for every element in an iCalendar of vCard object.
- Class name: Node
- Namespace: Sabre\VObject
- This class implements: IteratorAggregate, ArrayAccess, Countable
const REPAIR = 1
public \Sabre\VObject\Node $parent
Reference to the parent object, if this is not the top object.
- Visibility: public
protected \Sabre\VObject\ElementList $iterator = null
Iterator override
- Visibility: protected
protected \Sabre\VObject\Component $root
The root document
- Visibility: protected
string Sabre\VObject\Node::serialize()
Serializes the node into a mimedir format
- Visibility: public
- This method is abstract.
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.
\Sabre\VObject\ElementList Sabre\VObject\Node::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
- $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
- $options int
int Sabre\VObject\Node::count()
Returns the number of elements
- Visibility: public
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
- $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
- $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
- $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
- $offset int