API Documentation

Zend/Service/Delicious/Post.php

Show: inherited
Table of Contents

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-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Service  
Subpackage
Delicious  
Version
$Id: Post.php 24594 2012-01-05 21:27:01Z matthew $  

\Zend_Service_Delicious_Post

Package: Zend\Service\Delicious

Zend_Service_Delicious_Post represents a post of a user that can be edited

Parent(s)
\Zend_Service_Delicious_SimplePost
Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

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
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
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.15.1.