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 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
Returns
Returns
Throws
Throws
Throws
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
Methods
__construct(\Zend_Service_Delicious $service, \DOMNodeList | array $posts = null) : void
Parameters
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
Parameters
Returns
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
Parameters
Name | Type | Description |
---|---|---|
$postList | array |
_constructFromNodeList(\DOMNodeList $nodeList) : void
Transforms DOMNodeList to array of posts
Parameters
Name | Type | Description |
---|---|---|
$nodeList | \DOMNodeList |
current() : \Zend_Service_Delicious_SimplePost
Return the current element
Implement Iterator::current()
ReturnsType | Description |
---|---|
\Zend_Service_Delicious_SimplePost |
offsetExists(int $offset) : bool
Whether the offset exists
Implement ArrayAccess::offsetExists()
ParametersName | Type | Description |
---|---|---|
$offset | int |
Type | Description |
---|---|
bool |
offsetGet(int $offset) : \Zend_Service_Delicious_SimplePost
Return value at given offset
Implement ArrayAccess::offsetGet()
ParametersName | 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()
ParametersName | 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()
ParametersName | 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()
ReturnsType | Description |
---|---|
bool |
withTag(string $tag) : \Zend_Service_Delicious_PostList
Filter list by tag
Parameters
Returns
Name | Type | Description |
---|---|---|
$tag | string |
Type | Description |
---|---|
\Zend_Service_Delicious_PostList |
withTags(array $tags) : \Zend_Service_Delicious_PostList
Filter list by list of tags
Parameters
Returns
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
Parameters
Returns
Name | Type | Description |
---|---|---|
$regexp | string |
Type | Description |
---|---|
\Zend_Service_Delicious_PostList |