Service/Delicious/PostList.php

Show: PublicProtectedPrivateinherited
Table of Contents
Zend Framework
LICENSE This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Service  
Subpackage
Delicious  
Version
$Id$  

\Zend_Service_Delicious_PostList

Package: Zend_Service\Delicious
List of posts retrived from the del.icio.us web service
Implements
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

>VPropertyprotectedint $_iteratorKey = 0

Iterator key

Default value0Details
Type
int
>VPropertyprotectedarray $_posts = array()

Array of Zend_Service_Delicious_Post

Default valuearray()Details
Type
array
>VPropertyprotected\Zend_Service_Delicious $_service

Service that has downloaded the post list

Methods

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

Parameters
NameTypeDescription
$service\Zend_Service_Delicious

Service that has downloaded the post

$posts\DOMNodeList | array
methodprivate_constructFromArray(array $postList) : void

Transforms the Array to array of posts

Parameters
NameTypeDescription
$postListarray
methodprivate_constructFromNodeList(\DOMNodeList $nodeList) : void

Transforms DOMNodeList to array of posts

Parameters
NameTypeDescription
$nodeList\DOMNodeList
methodpubliccount() : int

Return number of posts

Implement Countable::count()
Returns
TypeDescription
int
methodpubliccurrent() : \Zend_Service_Delicious_SimplePost

Return the current element

Implement Iterator::current()
Returns
TypeDescription
\Zend_Service_Delicious_SimplePost
methodpublickey() : int

Return the key of the current element

Implement Iterator::key()
Returns
TypeDescription
int
methodpublicnext() : void

Move forward to next element

Implement Iterator::next()
methodpublicoffsetExists(int $offset) : bool

Whether the offset exists

Implement ArrayAccess::offsetExists()
Parameters
NameTypeDescription
$offsetint
Returns
TypeDescription
bool
methodpublicoffsetGet(int $offset) : \Zend_Service_Delicious_SimplePost

Return value at given offset

Implement ArrayAccess::offsetGet()
Parameters
NameTypeDescription
$offsetint
Returns
TypeDescription
\Zend_Service_Delicious_SimplePost
Throws
ExceptionDescription
\OutOfBoundsException
methodpublicoffsetSet(int $offset, string $value) : void

Throws exception because all values are read-only

Implement ArrayAccess::offsetSet()
Parameters
NameTypeDescription
$offsetint
$valuestring
Throws
ExceptionDescription
\Zend_Service_Delicious_Exception
methodpublicoffsetUnset(int $offset) : void

Throws exception because all values are read-only

Implement ArrayAccess::offsetUnset()
Parameters
NameTypeDescription
$offsetint
Throws
ExceptionDescription
\Zend_Service_Delicious_Exception
methodpublicrewind() : void

Rewind the Iterator to the first element

Implement Iterator::rewind()
methodpublicvalid() : bool

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

Implement Iterator::valid()
Returns
TypeDescription
bool
methodpublicwithTag(string $tag) : \Zend_Service_Delicious_PostList

Filter list by tag

Parameters
NameTypeDescription
$tagstring
Returns
TypeDescription
\Zend_Service_Delicious_PostList
methodpublicwithTags(array $tags) : \Zend_Service_Delicious_PostList

Filter list by list of tags

Parameters
NameTypeDescription
$tagsarray
Returns
TypeDescription
\Zend_Service_Delicious_PostList
methodpublicwithUrl(string $regexp) : \Zend_Service_Delicious_PostList

Filter list by urls matching a regular expression

Parameters
NameTypeDescription
$regexpstring
Returns
TypeDescription
\Zend_Service_Delicious_PostList
Documentation was generated by phpDocumentor 2.2.0 .