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 [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
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


string $_notes =
- Type
- string
- Inherited_from
- \Zend_Service_Delicious_SimplePost::$$_notes


array $_tags = array()
array()
Details- Type
- array
- Inherited_from
- \Zend_Service_Delicious_SimplePost::$$_tags


string $_title =
- Type
- string
- Inherited_from
- \Zend_Service_Delicious_SimplePost::$$_title


string $_url =
- Type
- string
- Inherited_from
- \Zend_Service_Delicious_SimplePost::$$_url
Methods


__construct(\Zend_Service_Delicious $service, \DOMElement | array $values) : void
Constructs a new del.icio.us post
Name | Type | Description |
---|---|---|
$service | \Zend_Service_Delicious | Service that has downloaded the post |
$values | \DOMElement | array | Post content |
Exception | Description |
---|---|
\Zend_Service_Delicious_Exception |


_parsePostNode(\DOMElement $node) : array
Extracts content from the DOM element of a post
Name | Type | Description |
---|---|---|
$node | \DOMElement |
Type | Description |
---|---|
array |


addTag(string $tag) : \Zend_Service_Delicious_Post
Add a tag
Name | Type | Description |
---|---|---|
$tag | string |
Type | Description |
---|---|
\Zend_Service_Delicious_Post |


getOthers() : 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.
Type | Description |
---|---|
int |


removeTag(string $tag) : \Zend_Service_Delicious_Post
Remove a tag
Name | Type | Description |
---|---|---|
$tag | string |
Type | Description |
---|---|
\Zend_Service_Delicious_Post |


setNotes(string $newNotes) : \Zend_Service_Delicious_Post
Setter for notes
Name | Type | Description |
---|---|---|
$newNotes | string |
Type | Description |
---|---|
\Zend_Service_Delicious_Post |


setShared(bool $isShared) : \Zend_Service_Delicious_Post
Setter for shared
Name | Type | Description |
---|---|---|
$isShared | bool |
Type | Description |
---|---|
\Zend_Service_Delicious_Post |


setTags(array $tags) : \Zend_Service_Delicious_Post
Setter for tags
Name | Type | Description |
---|---|---|
$tags | array |
Type | Description |
---|---|
\Zend_Service_Delicious_Post |


setTitle(string $newTitle) : \Zend_Service_Delicious_Post
Setter for title
Name | Type | Description |
---|---|---|
$newTitle | string |
Type | Description |
---|---|
\Zend_Service_Delicious_Post |