Service/Delicious/PostList.php
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 [email protected] so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Service
- Subpackage
- Delicious
- Version
- $Id: PostList.php 24593 2012-01-05 20:35:02Z matthew $
\Zend_Service_Delicious_PostList
List of posts retrived from the del.icio.us web service
- Implements
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties


array $_posts = array()
array()
Details- Type
- array
Methods


__construct(\Zend_Service_Delicious $service, \DOMNodeList | array $posts = null) : void
Name | Type | Description |
---|---|---|
$service | \Zend_Service_Delicious | Service that has downloaded the post |
$posts | \DOMNodeList | array |


_addPost(\Zend_Service_Delicious_SimplePost $post) : \Zend_Service_Delicious_PostList
Add a post
Name | Type | Description |
---|---|---|
$post | \Zend_Service_Delicious_SimplePost |
Type | Description |
---|---|
\Zend_Service_Delicious_PostList |


_constructFromArray(array $postList) : void
Transforms the Array to array of posts
Name | Type | Description |
---|---|---|
$postList | array |


_constructFromNodeList(\DOMNodeList $nodeList) : void
Transforms DOMNodeList to array of posts
Name | Type | Description |
---|---|---|
$nodeList | \DOMNodeList |


current() : \Zend_Service_Delicious_SimplePost
Return the current element
Implement Iterator::current()
Type | Description |
---|---|
\Zend_Service_Delicious_SimplePost |


key() : int
Return the key of the current element
Implement Iterator::key()
Type | Description |
---|---|
int |


offsetExists(int $offset) : bool
Whether the offset exists
Implement ArrayAccess::offsetExists()
Name | Type | Description |
---|---|---|
$offset | int |
Type | Description |
---|---|
bool |


offsetGet(int $offset) : \Zend_Service_Delicious_SimplePost
Return value at given offset
Implement ArrayAccess::offsetGet()
Name | Type | Description |
---|---|---|
$offset | int |
Type | Description |
---|---|
\Zend_Service_Delicious_SimplePost |
Exception | Description |
---|---|
\OutOfBoundsException |


offsetSet(int $offset, string $value) : void
Throws exception because all values are read-only
Implement ArrayAccess::offsetSet()
Name | Type | Description |
---|---|---|
$offset | int | |
$value | string |
Exception | Description |
---|---|
\Zend_Service_Delicious_Exception |


offsetUnset(int $offset) : void
Throws exception because all values are read-only
Implement ArrayAccess::offsetUnset()
Name | Type | Description |
---|---|---|
$offset | int |
Exception | Description |
---|---|
\Zend_Service_Delicious_Exception |


valid() : bool
Check if there is a current element after calls to rewind() or next()
Implement Iterator::valid()
Type | Description |
---|---|
bool |


withTag(string $tag) : \Zend_Service_Delicious_PostList
Filter list by tag
Name | Type | Description |
---|---|---|
$tag | string |
Type | Description |
---|---|
\Zend_Service_Delicious_PostList |


withTags(array $tags) : \Zend_Service_Delicious_PostList
Filter list by list of tags
Name | Type | Description |
---|---|---|
$tags | array |
Type | Description |
---|---|
\Zend_Service_Delicious_PostList |


withUrl(string $regexp) : \Zend_Service_Delicious_PostList
Filter list by urls matching a regular expression
Name | Type | Description |
---|---|---|
$regexp | string |
Type | Description |
---|---|
\Zend_Service_Delicious_PostList |