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 [email protected] 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 24593 2012-01-05 20:35:02Z 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 =

<p>Post date</p>
Details
Type
\Zend_Date
Propertyprotectedstring $_hash =

<p>Post hash</p>
Details
Type
string
Propertyprotectedstring $_notes =
inherited

<p>Post notes</p>Inherited from: \Zend_Service_Delicious_SimplePost::$$_notes
Details
Type
string
Inherited_from
\Zend_Service_Delicious_SimplePost::$$_notes  
Propertyprotectedint $_others =

<p>Number of people that have the same post</p>
Details
Type
int
Propertyprotected\Zend_Service_Delicious $_service =

Service that has downloaded the post

Propertyprotectedbool $_shared = true

<p>Post share</p>
Default valuetrueDetails
Type
bool
Propertyprotectedarray $_tags = array()
inherited

<p>Post tags</p>Inherited from: \Zend_Service_Delicious_SimplePost::$$_tags
Default valuearray()Details
Type
array
Inherited_from
\Zend_Service_Delicious_SimplePost::$$_tags  
Propertyprotectedstring $_title =
inherited

<p>Post title</p>Inherited from: \Zend_Service_Delicious_SimplePost::$$_title
Details
Type
string
Inherited_from
\Zend_Service_Delicious_SimplePost::$$_title  
Propertyprotectedstring $_url =
inherited

<p>Post url</p>Inherited from: \Zend_Service_Delicious_SimplePost::$$_url
Details
Type
string
Inherited_from
\Zend_Service_Delicious_SimplePost::$$_url  

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
inherited

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
inherited

Getter for tags

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

Getter for title

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

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 phpDocumentor 2.0.0a8.