Zend_Service_Delicious_Post represents a post of a user that can be edited

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

 Methods

Constructs a new del.icio.us post

__construct(\Zend_Service_Delicious $service, \DOMElement|array $values) : void
inherited_from \Zend_Service_Delicious_SimplePost::__construct()

Parameters

$service

\Zend_Service_Delicious

Service that has downloaded the post

$values

\DOMElementarray

Post content

Exceptions

\Zend_Service_Delicious_Exception

Constructor

__construct(array $post) : void
Inherited

Parameters

$post

array

Post data

Exceptions

\Zend_Service_Delicious_Exception

Add a tag

addTag(string $tag) : \Zend_Service_Delicious_Post

Parameters

$tag

string

Returns

\Zend_Service_Delicious_Post

Deletes post

delete() : \Zend_Service_Delicious

Returns

\Zend_Service_Delicious

Getter for date

getDate() : \Zend_Date

Returns

\Zend_Date

Getter for hash

getHash() : string

Returns

string

Getter for notes

getNotes() : string
Inherited

Returns

string

Getter for others

getOthers() : integer

This property is only populated when posts are retrieved with getPosts() method. The getAllPosts() and getRecentPosts() methods will not populate this property.

Returns

integer

Getter for shared

getShared() : boolean

Returns

boolean

Getter for tags

getTags() : array
Inherited

Returns

array

Getter for title

getTitle() : string
Inherited

Returns

string

Getter for URL

getUrl() : string
Inherited

Returns

string

Remove a tag

removeTag(string $tag) : \Zend_Service_Delicious_Post

Parameters

$tag

string

Returns

\Zend_Service_Delicious_Post

Saves post

save() : \DOMDocument

Returns

\DOMDocument

Setter for notes

setNotes(string $newNotes) : \Zend_Service_Delicious_Post

Parameters

$newNotes

string

Returns

\Zend_Service_Delicious_Post

Setter for shared

setShared(boolean $isShared) : \Zend_Service_Delicious_Post

Parameters

$isShared

boolean

Returns

\Zend_Service_Delicious_Post

Setter for tags

setTags(array $tags) : \Zend_Service_Delicious_Post

Parameters

$tags

array

Returns

\Zend_Service_Delicious_Post

Setter for title

setTitle(string $newTitle) : \Zend_Service_Delicious_Post

Parameters

$newTitle

string

Returns

\Zend_Service_Delicious_Post

Extracts content from the DOM element of a post

_parsePostNode(\DOMElement $node) : array
Static

Parameters

$node

\DOMElement

Returns

array

 Properties

 

Post date

$_date : \Zend_Date

Default

 

Post hash

$_hash : string

Default

 

Post notes

$_notes : string

Default

 

Number of people that have the same post

$_others : integer

Default

 

Service that has downloaded the post

$_service : \Zend_Service_Delicious

Default

 

Post share

$_shared : boolean

Default

true
 

Post tags

$_tags : array

Default

array()
 

Post title

$_title : string

Default

 

Post url

$_url : string

Default