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-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
Methods
__construct(\Zend_Service_Delicious $service, \DOMElement | array $values) : void
Constructs a new del.icio.us post
Parameters
Throws
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
static
Extracts content from the DOM element of a post
Parameters
Returns
Name | Type | Description |
---|---|---|
$node | \DOMElement |
Type | Description |
---|---|
array |
addTag(string $tag) : \Zend_Service_Delicious_Post
Add a tag
Parameters
Returns
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.
ReturnsType | Description |
---|---|
int |
removeTag(string $tag) : \Zend_Service_Delicious_Post
Remove a tag
Parameters
Returns
Name | Type | Description |
---|---|---|
$tag | string |
Type | Description |
---|---|
\Zend_Service_Delicious_Post |
setNotes(string $newNotes) : \Zend_Service_Delicious_Post
Setter for notes
Parameters
Returns
Name | Type | Description |
---|---|---|
$newNotes | string |
Type | Description |
---|---|
\Zend_Service_Delicious_Post |
setShared(bool $isShared) : \Zend_Service_Delicious_Post
Setter for shared
Parameters
Returns
Name | Type | Description |
---|---|---|
$isShared | bool |
Type | Description |
---|---|
\Zend_Service_Delicious_Post |
setTags(array $tags) : \Zend_Service_Delicious_Post
Setter for tags
Parameters
Returns
Name | Type | Description |
---|---|---|
$tags | array |
Type | Description |
---|---|
\Zend_Service_Delicious_Post |
setTitle(string $newTitle) : \Zend_Service_Delicious_Post
Setter for title
Parameters
Returns
Name | Type | Description |
---|---|---|
$newTitle | string |
Type | Description |
---|---|
\Zend_Service_Delicious_Post |