Service/Delicious/Post.php

Show: PublicProtectedPrivateinherited
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 [email protected] so we can send you a copy immediately.
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Service  
Subpackage
Delicious  
Version
$Id$  

\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-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

>VPropertyprotected\Zend_Date $_date

Post date

Details
Type
\Zend_Date
>VPropertyprotectedstring $_hash

Post hash

Details
Type
string
>VPropertyprotectedint $_others

Number of people that have the same post

Details
Type
int
>VPropertyprotected\Zend_Service_Delicious $_service
Service that has downloaded the post
>VPropertyprotectedbool $_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
NameTypeDescription
$service\Zend_Service_Delicious

Service that has downloaded the post

$values\DOMElement | array

Post content

Throws
ExceptionDescription
\Zend_Service_Delicious_Exception
methodprotected_parsePostNode(\DOMElement $node) : array
static

Extracts content from the DOM element of a post

Parameters
NameTypeDescription
$node\DOMElement
Returns
TypeDescription
array
methodpublicaddTag(string $tag) : \Zend_Service_Delicious_Post

Add a tag

Parameters
NameTypeDescription
$tagstring
Returns
TypeDescription
\Zend_Service_Delicious_Post
methodpublicdelete() : \Zend_Service_Delicious

Deletes post

Returns
TypeDescription
\Zend_Service_Delicious
methodpublicgetDate() : \Zend_Date

Getter for date

Returns
TypeDescription
\Zend_Date
methodpublicgetHash() : string

Getter for hash

Returns
TypeDescription
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
TypeDescription
int
methodpublicgetShared() : bool

Getter for shared

Returns
TypeDescription
bool
methodpublicremoveTag(string $tag) : \Zend_Service_Delicious_Post

Remove a tag

Parameters
NameTypeDescription
$tagstring
Returns
TypeDescription
\Zend_Service_Delicious_Post
methodpublicsave() : \DOMDocument

Saves post

Returns
TypeDescription
\DOMDocument
methodpublicsetNotes(string $newNotes) : \Zend_Service_Delicious_Post

Setter for notes

Parameters
NameTypeDescription
$newNotesstring
Returns
TypeDescription
\Zend_Service_Delicious_Post
methodpublicsetShared(bool $isShared) : \Zend_Service_Delicious_Post

Setter for shared

Parameters
NameTypeDescription
$isSharedbool
Returns
TypeDescription
\Zend_Service_Delicious_Post
methodpublicsetTags(array $tags) : \Zend_Service_Delicious_Post

Setter for tags

Parameters
NameTypeDescription
$tagsarray
Returns
TypeDescription
\Zend_Service_Delicious_Post
methodpublicsetTitle(string $newTitle) : \Zend_Service_Delicious_Post

Setter for title

Parameters
NameTypeDescription
$newTitlestring
Returns
TypeDescription
\Zend_Service_Delicious_Post
Documentation was generated by phpDocumentor 2.2.0 .