Moodle  2.2.1
http://www.collinsharper.com
Zend_Service_Delicious_Post Class Reference
Inheritance diagram for Zend_Service_Delicious_Post:
Collaboration diagram for Zend_Service_Delicious_Post:

Public Member Functions

 __construct (Zend_Service_Delicious $service, $values)
 setTitle ($newTitle)
 setNotes ($newNotes)
 setTags (array $tags)
 addTag ($tag)
 removeTag ($tag)
 getDate ()
 getOthers ()
 getHash ()
 getShared ()
 setShared ($isShared)
 delete ()
 save ()

Static Protected Member Functions

static _parsePostNode (DOMElement $node)

Protected Attributes

 $_service
 $_others
 $_date
 $_shared = true
 $_hash

Detailed Description

Definition at line 45 of file Post.php.


Constructor & Destructor Documentation

__construct ( Zend_Service_Delicious service,
values 
)

Constructs a new del.icio.us post

Parameters:
Zend_Service_Delicious$serviceService that has downloaded the post
DOMElement | array$valuesPost content
Exceptions:
Zend_Service_Delicious_Exception
Returns:
void
See also:
Zend_Service_Delicious_Exception
Zend_Service_Delicious_Exception

Definition at line 82 of file Post.php.

Here is the call graph for this function:


Member Function Documentation

static _parsePostNode ( DOMElement $  node) [static, protected]

Extracts content from the DOM element of a post

Parameters:
DOMElement$node
Returns:
array
Todo:
replace strtotime() with Zend_Date equivalent

Definition at line 276 of file Post.php.

Here is the caller graph for this function:

addTag ( tag)

Add a tag

Parameters:
string$tag
Returns:
Zend_Service_Delicious_Post

Definition at line 159 of file Post.php.

delete ( )

Deletes post

Returns:
Zend_Service_Delicious

Definition at line 241 of file Post.php.

getDate ( )

Getter for date

Returns:
Zend_Date

Definition at line 184 of file Post.php.

getHash ( )

Getter for hash

Returns:
string

Definition at line 208 of file Post.php.

getOthers ( )

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:
int

Definition at line 198 of file Post.php.

getShared ( )

Getter for shared

Returns:
bool

Definition at line 218 of file Post.php.

removeTag ( tag)

Remove a tag

Parameters:
string$tag
Returns:
Zend_Service_Delicious_Post

Definition at line 172 of file Post.php.

save ( )

Saves post

Returns:
DOMDocument

Definition at line 251 of file Post.php.

setNotes ( newNotes)

Setter for notes

Parameters:
string$newNotes
Returns:
Zend_Service_Delicious_Post

Definition at line 133 of file Post.php.

setShared ( isShared)

Setter for shared

Parameters:
bool$isShared
Returns:
Zend_Service_Delicious_Post

Definition at line 229 of file Post.php.

setTags ( array tags)

Setter for tags

Parameters:
array$tags
Returns:
Zend_Service_Delicious_Post

Definition at line 146 of file Post.php.

setTitle ( newTitle)

Setter for title

Parameters:
string$newTitle
Returns:
Zend_Service_Delicious_Post

Definition at line 120 of file Post.php.


Field Documentation

$_date [protected]

Definition at line 62 of file Post.php.

$_hash [protected]

Definition at line 72 of file Post.php.

$_others [protected]

Definition at line 57 of file Post.php.

$_service [protected]

Definition at line 52 of file Post.php.

$_shared = true [protected]

Definition at line 67 of file Post.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations