API Documentation

Service/Delicious/Post.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-2011 Zend Technologies USA Inc. (http://www.zend.com)  
license
New BSD License  
package
Zend_Service  
subpackage
Delicious  
version
$Id: Post.php 23775 2011-03-01 17:25:24Z ralph $  

\Zend_Service_Delicious_Post

Zend_Service_Delicious_Post represents a post of a user that can be edited

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

Properties

Propertyprotected\Zend_Date  $_date= ''

Post date
Details
Type
\Zend_Date
Propertyprotectedstring  $_hash= ''

Post hash
Details
Type
string
Propertyprotectedint  $_others= ''

Number of people that have the same post
Details
Type
int
Propertyprotected\Zend_Service_Delicious  $_service= ''

Service that has downloaded the post

Propertyprotectedbool  $_shared= 'true'

Post share
Default valuetrueDetails
Type
bool

Methods

methodpublic__construct( \Zend_Service_Delicious $service, \DOMElement|array $values ) : void

Constructs a new del.icio.us post

Parameters
Name Type Description
$service \Zend_Service_Delicious Service that has downloaded the post
$values \DOMElement|array Post content
Throws
Exception Description
\Zend_Service_Delicious_Exception
methodprotected_parsePostNode( \DOMElement $node ) : array
static

Extracts content from the DOM element of a post

Parameters
Name Type Description
$node \DOMElement
Returns
Type Description
array
methodpublicaddTag( string $tag ) : \Zend_Service_Delicious_Post

Add a tag

Parameters
Name Type Description
$tag string
Returns
Type Description
\Zend_Service_Delicious_Post
methodpublicdelete( ) : \Zend_Service_Delicious

Deletes post

Returns
Type Description
\Zend_Service_Delicious
methodpublicgetDate( ) : \Zend_Date

Getter for date

Returns
Type Description
\Zend_Date
methodpublicgetHash( ) : string

Getter for hash

Returns
Type Description
string
methodpublicgetNotes( ) : string

Getter for notes

Inherited from: \Zend_Service_Delicious_SimplePost::getNotes()
Returns
Type Description
string
methodpublicgetOthers( ) : int

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
Type Description
int
methodpublicgetShared( ) : bool

Getter for shared

Returns
Type Description
bool
methodpublicgetTags( ) : array

Getter for tags

Inherited from: \Zend_Service_Delicious_SimplePost::getTags()
Returns
Type Description
array
methodpublicgetTitle( ) : string

Getter for title

Inherited from: \Zend_Service_Delicious_SimplePost::getTitle()
Returns
Type Description
string
methodpublicgetUrl( ) : string

Getter for URL

Inherited from: \Zend_Service_Delicious_SimplePost::getUrl()
Returns
Type Description
string
methodpublicremoveTag( string $tag ) : \Zend_Service_Delicious_Post

Remove a tag

Parameters
Name Type Description
$tag string
Returns
Type Description
\Zend_Service_Delicious_Post
methodpublicsave( ) : \DOMDocument

Saves post

Returns
Type Description
\DOMDocument
methodpublicsetNotes( string $newNotes ) : \Zend_Service_Delicious_Post

Setter for notes

Parameters
Name Type Description
$newNotes string
Returns
Type Description
\Zend_Service_Delicious_Post
methodpublicsetShared( bool $isShared ) : \Zend_Service_Delicious_Post

Setter for shared

Parameters
Name Type Description
$isShared bool
Returns
Type Description
\Zend_Service_Delicious_Post
methodpublicsetTags( array $tags ) : \Zend_Service_Delicious_Post

Setter for tags

Parameters
Name Type Description
$tags array
Returns
Type Description
\Zend_Service_Delicious_Post
methodpublicsetTitle( string $newTitle ) : \Zend_Service_Delicious_Post

Setter for title

Parameters
Name Type Description
$newTitle string
Returns
Type Description
\Zend_Service_Delicious_Post
Documentation was generated by DocBlox 0.13.3.