API Documentation

Service/Delicious/PostList.php

Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Service
subpackage
Delicious
version
$Id: PostList.php 20096 2010-01-06 02:05:09Z bkarwin $
Classes
Zend_Service_Delicious_PostList

Description

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.

Zend_Service_Delicious_PostList

Implements
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Service
subpackage
Delicious
Properties
$_posts
$_service
$_iteratorKey
Methods
__construct
_constructFromNodeList
_constructFromArray
_addPost
withTags
withTag
withUrl
count
current
key
next
rewind
valid
offsetExists
offsetGet
offsetSet
offsetUnset

Description

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

Properties

$_iteratorKey

int $_iteratorKey = '0'

Details

$_iteratorKey
int
Iterator key
visibility
protected
default
0
final
false
static
false

$_posts

array $_posts = 'array'

Details

$_posts
array
Array of Zend_Service_Delicious_Post
visibility
protected
default
array
final
false
static
false

$_service

Zend_Service_Delicious $_service = ''

Details

$_service
Zend_Service_Delicious
Service that has downloaded the post list
visibility
protected
default
final
false
static
false

Methods

__construct

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

Arguments
$service
Zend_Service_Delicious
Service that has downloaded the post
$posts
DOMNodeListarray
Details
visibility
public
final
false
static
false

_addPost

_addPost( Zend_Service_Delicious_SimplePost $post ) : Zend_Service_Delicious_PostList

Add a post

Arguments
$post
Zend_Service_Delicious_SimplePost
Details
visibility
protected
final
false
static
false

_constructFromArray

_constructFromArray( array $postList ) : void

Transforms the Array to array of posts

Arguments
$postList
array
Details
visibility
private
final
false
static
false

_constructFromNodeList

_constructFromNodeList( DOMNodeList $nodeList ) : void

Transforms DOMNodeList to array of posts

Arguments
$nodeList
DOMNodeList
Details
visibility
private
final
false
static
false

count

count( ) : int

Return number of posts

Implement Countable::count()

Output
int
Details
visibility
public
final
false
static
false

current

current( ) : Zend_Service_Delicious_SimplePost

Return the current element

Implement Iterator::current()

Details
visibility
public
final
false
static
false

key

key( ) : int

Return the key of the current element

Implement Iterator::key()

Output
int
Details
visibility
public
final
false
static
false

next

next( ) : void

Move forward to next element

Implement Iterator::next()

Details
visibility
public
final
false
static
false

offsetExists

offsetExists( int $offset ) : bool

Whether the offset exists

Implement ArrayAccess::offsetExists()

Arguments
$offset
int
Output
bool
Details
visibility
public
final
false
static
false

offsetGet

offsetGet( int $offset ) : Zend_Service_Delicious_SimplePost

Return value at given offset

Implement ArrayAccess::offsetGet()

Arguments
$offset
int
Details
visibility
public
final
false
static
false
throws

offsetSet

offsetSet( int $offset, string $value ) :

Throws exception because all values are read-only

Implement ArrayAccess::offsetSet()

Arguments
$offset
int
$value
string
Details
visibility
public
final
false
static
false
throws

offsetUnset

offsetUnset( int $offset ) :

Throws exception because all values are read-only

Implement ArrayAccess::offsetUnset()

Arguments
$offset
int
Details
visibility
public
final
false
static
false
throws

rewind

rewind( ) : void

Rewind the Iterator to the first element

Implement Iterator::rewind()

Details
visibility
public
final
false
static
false

valid

valid( ) : bool

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

Implement Iterator::valid()

Output
bool
Details
visibility
public
final
false
static
false

withTag

withTag( string $tag ) : Zend_Service_Delicious_PostList

Filter list by tag

Arguments
$tag
string
Details
visibility
public
final
false
static
false

withTags

withTags( array $tags ) : Zend_Service_Delicious_PostList

Filter list by list of tags

Arguments
$tags
array
Details
visibility
public
final
false
static
false

withUrl

withUrl( string $regexp ) : Zend_Service_Delicious_PostList

Filter list by urls matching a regular expression

Arguments
$regexp
string
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.