Zend Framework  1.12
Public Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
Zend_Service_Delicious_Post Class Reference

Public Member Functions

 __construct (Zend_Service_Delicious $service, $values)
 Constructs a new del.icio.us post.
 
 setTitle ($newTitle)
 Setter for title.
 
 setNotes ($newNotes)
 Setter for notes.
 
 setTags (array $tags)
 Setter for tags.
 
 addTag ($tag)
 Add a tag.
 
 removeTag ($tag)
 Remove a tag.
 
 getDate ()
 Getter for date.
 
 getOthers ()
 Getter for others.
 
 getHash ()
 Getter for hash.
 
 getShared ()
 Getter for shared.
 
 setShared ($isShared)
 Setter for shared.
 
 delete ()
 Deletes post.
 
 save ()
 Saves post.
 
- Public Member Functions inherited from Zend_Service_Delicious_SimplePost
 __construct (array $post)
 Constructor.
 
 getUrl ()
 Getter for URL.
 
 getTitle ()
 Getter for title.
 
 getNotes ()
 Getter for notes.
 
 getTags ()
 Getter for tags.
 

Static Protected Member Functions

static _parsePostNode (DOMElement $node)
 Extracts content from the DOM element of a post.
 

Protected Attributes

 $_service
 
 $_others
 
 $_date
 
 $_shared = true
 
 $_hash
 
- Protected Attributes inherited from Zend_Service_Delicious_SimplePost
 $_url
 
 $_title
 
 $_notes
 
 $_tags = array()
 

Constructor & Destructor Documentation

__construct ( Zend_Service_Delicious  $service,
  $values 
)

Constructs a new del.icio.us post.

Parameters
Zend_Service_Delicious$serviceService that has downloaded the post
DOMElement | array$valuesPost content
Exceptions
Zend_Service_Delicious_Exception
Returns
void
See Also
Zend_Service_Delicious_Exception
Zend_Service_Delicious_Exception

Member Function Documentation

static _parsePostNode ( DOMElement  $node)
staticprotected

Extracts content from the DOM element of a post.

Parameters
DOMElement$node
Returns
array
Todo:
replace strtotime() with Zend_Date equivalent
addTag (   $tag)

Add a tag.

Parameters
string$tag
Returns
Zend_Service_Delicious_Post
delete ( )

Deletes post.

Returns
Zend_Service_Delicious
getDate ( )

Getter for date.

Returns
Zend_Date
getHash ( )

Getter for hash.

Returns
string
getOthers ( )

Getter for others.

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

Returns
int
getShared ( )

Getter for shared.

Returns
bool
removeTag (   $tag)

Remove a tag.

Parameters
string$tag
Returns
Zend_Service_Delicious_Post
save ( )

Saves post.

Returns
DOMDocument
setNotes (   $newNotes)

Setter for notes.

Parameters
string$newNotes
Returns
Zend_Service_Delicious_Post
setShared (   $isShared)

Setter for shared.

Parameters
bool$isShared
Returns
Zend_Service_Delicious_Post
setTags ( array  $tags)

Setter for tags.

Parameters
array$tags
Returns
Zend_Service_Delicious_Post
setTitle (   $newTitle)

Setter for title.

Parameters
string$newTitle
Returns
Zend_Service_Delicious_Post

Member Data Documentation

$_date
protected
$_hash
protected
$_others
protected
$_service
protected
$_shared = true
protected