-
Notifications
You must be signed in to change notification settings - Fork 125
Sabre VObject ElementList
Evert Pot edited this page Sep 1, 2014
·
3 revisions
VObject ElementList
This class represents a list of elements. Lists are the result of queries, such as doing $vcalendar->vevent where there's multiple VEVENT objects.
- Class name: ElementList
- Namespace: Sabre\VObject
- This class implements: Iterator, Countable, ArrayAccess
protected array $elements = array()
Inner elements
- Visibility: protected
private integer $key
Current position
- Visibility: private
mixed Sabre\VObject\ElementList::__construct(array $elements)
Creates the element list.
- Visibility: public
- $elements array
\Sabre\VObject\Element Sabre\VObject\ElementList::current()
Returns current item in iteration
- Visibility: public
void Sabre\VObject\ElementList::next()
To the next item in the iterator
- Visibility: public
integer Sabre\VObject\ElementList::key()
Returns the current iterator key
- Visibility: public
boolean Sabre\VObject\ElementList::valid()
Returns true if the current position in the iterator is a valid one
- Visibility: public
void Sabre\VObject\ElementList::rewind()
Rewinds the iterator
- Visibility: public
integer Sabre\VObject\ElementList::count()
Returns the number of elements
- Visibility: public
boolean Sabre\VObject\ElementList::offsetExists(integer $offset)
Checks if an item exists through ArrayAccess.
- Visibility: public
- $offset integer
mixed Sabre\VObject\ElementList::offsetGet(integer $offset)
Gets an item through ArrayAccess.
- Visibility: public
- $offset integer
void Sabre\VObject\ElementList::offsetSet(integer $offset, mixed $value)
Sets an item through ArrayAccess.
- Visibility: public
- $offset integer
- $value mixed
void Sabre\VObject\ElementList::offsetUnset(integer $offset)
Sets an item through ArrayAccess.
This method just forwards the request to the inner iterator
- Visibility: public
- $offset integer