Moodle  2.2.1
http://www.collinsharper.com
Zend_Service_Delicious_PostList Class Reference

Public Member Functions

 __construct (Zend_Service_Delicious $service, $posts=null)
 withTags (array $tags)
 withTag ($tag)
 withUrl ($regexp)
 count ()
 current ()
 key ()
 next ()
 rewind ()
 valid ()
 offsetExists ($offset)
 offsetGet ($offset)
 offsetSet ($offset, $value)
 offsetUnset ($offset)

Protected Member Functions

 _addPost (Zend_Service_Delicious_SimplePost $post)

Protected Attributes

 $_posts = array()
 $_service
 $_iteratorKey = 0

Detailed Description

Definition at line 34 of file PostList.php.


Constructor & Destructor Documentation

__construct ( Zend_Service_Delicious service,
posts = null 
)
Parameters:
Zend_Service_Delicious$serviceService that has downloaded the post
DOMNodeList | array$posts
Returns:
void

Definition at line 56 of file PostList.php.


Member Function Documentation

Add a post

Parameters:
Zend_Service_Delicious_SimplePost$post
Returns:
Zend_Service_Delicious_PostList

Definition at line 101 of file PostList.php.

count ( )

Return number of posts

Implement Countable::count()

Returns:
int

Definition at line 164 of file PostList.php.

Here is the caller graph for this function:

current ( )

Return the current element

Implement Iterator::current()

Returns:
Zend_Service_Delicious_SimplePost

Definition at line 176 of file PostList.php.

int Iterator key ( )

Return the key of the current element

Implement Iterator::key()

Returns:
int

Definition at line 188 of file PostList.php.

next ( )

Move forward to next element

Implement Iterator::next()

Returns:
void

Definition at line 200 of file PostList.php.

offsetExists ( offset)

Whether the offset exists

Implement ArrayAccess::offsetExists()

Parameters:
int$offset
Returns:
bool

Definition at line 243 of file PostList.php.

Here is the call graph for this function:

Here is the caller graph for this function:

offsetGet ( offset)

Return value at given offset

Implement ArrayAccess::offsetGet()

Parameters:
int$offset
Exceptions:
OutOfBoundsException
Returns:
Zend_Service_Delicious_SimplePost

Definition at line 257 of file PostList.php.

Here is the call graph for this function:

offsetSet ( offset,
value 
)

Throws exception because all values are read-only

Implement ArrayAccess::offsetSet()

Parameters:
int$offset
string$value
Exceptions:
Zend_Service_Delicious_Exception
See also:
Zend_Service_Delicious_Exception

Definition at line 275 of file PostList.php.

offsetUnset ( offset)

Throws exception because all values are read-only

Implement ArrayAccess::offsetUnset()

Parameters:
int$offset
Exceptions:
Zend_Service_Delicious_Exception
See also:
Zend_Service_Delicious_Exception

Definition at line 292 of file PostList.php.

rewind ( )

Rewind the Iterator to the first element

Implement Iterator::rewind()

Returns:
void

Definition at line 212 of file PostList.php.

valid ( )

Check if there is a current element after calls to rewind() or next()

Implement Iterator::valid()

Returns:
bool

Definition at line 224 of file PostList.php.

Here is the call graph for this function:

withTag ( tag)

Filter list by tag

Parameters:
string$tag
Returns:
Zend_Service_Delicious_PostList

Definition at line 133 of file PostList.php.

Here is the call graph for this function:

withTags ( array tags)

Filter list by list of tags

Parameters:
array$tags
Returns:
Zend_Service_Delicious_PostList

Definition at line 114 of file PostList.php.

Here is the call graph for this function:

Here is the caller graph for this function:

withUrl ( regexp)

Filter list by urls matching a regular expression

Parameters:
string$regexp
Returns:
Zend_Service_Delicious_PostList

Definition at line 144 of file PostList.php.


Field Documentation

$_iteratorKey = 0 [protected]

Definition at line 49 of file PostList.php.

$_posts = array() [protected]

Definition at line 39 of file PostList.php.

$_service [protected]

Definition at line 44 of file PostList.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations