Zend Framework  1.12
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Zend_Service_Delicious_PostList Class Reference

Public Member Functions

 __construct (Zend_Service_Delicious $service, $posts=null)
 
 withTags (array $tags)
 Filter list by list of tags.
 
 withTag ($tag)
 Filter list by tag.
 
 withUrl ($regexp)
 Filter list by urls matching a regular expression.
 
 count ()
 Return number of posts.
 
 current ()
 Return the current element.
 
 key ()
 Return the key of the current element.
 
 next ()
 Move forward to next element.
 
 rewind ()
 Rewind the Iterator to the first element.
 
 valid ()
 Check if there is a current element after calls to rewind() or next()
 
 offsetExists ($offset)
 Whether the offset exists.
 
 offsetGet ($offset)
 Return value at given offset.
 
 offsetSet ($offset, $value)
 Throws exception because all values are read-only.
 
 offsetUnset ($offset)
 Throws exception because all values are read-only.
 

Protected Member Functions

 _addPost (Zend_Service_Delicious_SimplePost $post)
 Add a post.
 

Protected Attributes

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

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

Member Function Documentation

_addPost ( Zend_Service_Delicious_SimplePost  $post)
protected
count ( )

Return number of posts.

Implement Countable::count()

Returns
int
current ( )

Return the current element.

Implement Iterator::current()

Returns
Zend_Service_Delicious_SimplePost
int Iterator key ( )

Return the key of the current element.

Implement Iterator::key()

Returns
int
next ( )

Move forward to next element.

Implement Iterator::next()

Returns
void
offsetExists (   $offset)

Whether the offset exists.

Implement ArrayAccess::offsetExists()

Parameters
int$offset
Returns
bool
offsetGet (   $offset)

Return value at given offset.

Implement ArrayAccess::offsetGet()

Parameters
int$offset
Exceptions
OutOfBoundsException
Returns
Zend_Service_Delicious_SimplePost
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
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
rewind ( )

Rewind the Iterator to the first element.

Implement Iterator::rewind()

Returns
void
valid ( )

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

Implement Iterator::valid()

Returns
bool
withTag (   $tag)

Filter list by tag.

Parameters
string$tag
Returns
Zend_Service_Delicious_PostList
withTags ( array  $tags)

Filter list by list of tags.

Parameters
array$tags
Returns
Zend_Service_Delicious_PostList
withUrl (   $regexp)

Filter list by urls matching a regular expression.

Parameters
string$regexp
Returns
Zend_Service_Delicious_PostList

Member Data Documentation

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