List of posts retrived from the del.icio.us web service

category Zend
package Zend_Service
subpackage Delicious
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License

 Methods

__construct()

__construct(\Zend_Service_Delicious $service, \DOMNodeList|array $posts = null) : void

Parameters

$service

\Zend_Service_Delicious

Service that has downloaded the post

$posts

\DOMNodeListarray

Return number of posts

count() : integer

Implement Countable::count()

Returns

integer

Return the current element

current() : \Zend_Service_Delicious_SimplePost

Implement Iterator::current()

Returns

\Zend_Service_Delicious_SimplePost

Return the key of the current element

key() : integer

Implement Iterator::key()

Returns

integer

Move forward to next element

next() : void

Implement Iterator::next()

Whether the offset exists

offsetExists(integer $offset) : boolean

Implement ArrayAccess::offsetExists()

Parameters

$offset

integer

Returns

boolean

Return value at given offset

offsetGet(integer $offset) : \Zend_Service_Delicious_SimplePost

Implement ArrayAccess::offsetGet()

Parameters

$offset

integer

Exceptions

\OutOfBoundsException

Returns

\Zend_Service_Delicious_SimplePost

Throws exception because all values are read-only

offsetSet(integer $offset, string $value) 

Implement ArrayAccess::offsetSet()

Parameters

$offset

integer

$value

string

Exceptions

\Zend_Service_Delicious_Exception

Throws exception because all values are read-only

offsetUnset(integer $offset) 

Implement ArrayAccess::offsetUnset()

Parameters

$offset

integer

Exceptions

\Zend_Service_Delicious_Exception

Rewind the Iterator to the first element

rewind() : void

Implement Iterator::rewind()

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

valid() : boolean

Implement Iterator::valid()

Returns

boolean

Filter list by tag

withTag(string $tag) : \Zend_Service_Delicious_PostList

Parameters

$tag

string

Returns

\Zend_Service_Delicious_PostList

Filter list by list of tags

withTags(array $tags) : \Zend_Service_Delicious_PostList

Parameters

$tags

array

Returns

\Zend_Service_Delicious_PostList

Filter list by urls matching a regular expression

withUrl(string $regexp) : \Zend_Service_Delicious_PostList

Parameters

$regexp

string

Returns

\Zend_Service_Delicious_PostList

Add a post

_addPost(\Zend_Service_Delicious_SimplePost $post) : \Zend_Service_Delicious_PostList

Parameters

$post

\Zend_Service_Delicious_SimplePost

Returns

\Zend_Service_Delicious_PostList

Transforms the Array to array of posts

_constructFromArray(array $postList) : void

Parameters

$postList

array

Transforms DOMNodeList to array of posts

_constructFromNodeList(\DOMNodeList $nodeList) : void

Parameters

$nodeList

\DOMNodeList

 Properties

 

Iterator key

$_iteratorKey : integer

Default

0
 

Array of Zend_Service_Delicious_Post

$_posts : array

Default

array()
 

Service that has downloaded the post list

$_service : \Zend_Service_Delicious

Default