[ Index ] |
PHP Cross Reference of moodle-2.8 |
[Source view] [Print] [Project Stats]
Zend Framework LICENSE
Copyright: | Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
License: | http://framework.zend.com/license/new-bsd New BSD License |
Version: | $Id$ |
File Size: | 616 lines (18 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
Zend_Service_Delicious:: (23 methods):
__construct()
setAuth()
getLastUpdate()
getTags()
renameTag()
getBundles()
addBundle()
deleteBundle()
deletePost()
getDates()
getPosts()
getAllPosts()
getRecentPosts()
createNewPost()
getUserPosts()
getUserTags()
getUserNetwork()
getUserFans()
getUrlDetails()
makeRequest()
_xmlResponseToArray()
_parseXmlPostList()
_evalXmlResult()
Class: Zend_Service_Delicious - X-Ref
Zend_Service_Delicious is a concrete implementation of the del.icio.us web service__construct($uname = null, $pass = null) X-Ref |
Constructs a new del.icio.us Web Services Client param: string $uname Client username param: string $pass Client password return: void |
setAuth($uname, $pass) X-Ref |
Set client username and password param: string $uname Client user name param: string $pass Client password return: Zend_Service_Delicious Provides a fluent interface |
getLastUpdate() X-Ref |
Get time of the last update return: Zend_Date |
getTags() X-Ref |
Get all tags, returning an array with tags as keys and number of corresponding posts as values return: array list of tags |
renameTag($old, $new) X-Ref |
Rename a tag param: string $old Old tag name param: string $new New tag name return: Zend_Service_Delicious Provides a fluent interface |
getBundles() X-Ref |
Get all bundles, returning an array with bundles as keys and array of tags as values return: array list of bundles |
addBundle($bundle, array $tags) X-Ref |
Adds a new bundle param: string $bundle Name of new bundle param: array $tags Array of tags return: Zend_Service_Delicious Provides a fluent interface |
deleteBundle($bundle) X-Ref |
Delete a bundle param: string $bundle Name of bundle to be deleted return: Zend_Service_Delicious Provides a fluent interface |
deletePost($url) X-Ref |
Delete a post param: string $url URL of post to be deleted return: Zend_Service_Delicious Provides a fluent interface |
getDates($tag = null) X-Ref |
Get number of posts by date Returns array where keys are dates and values are numbers of posts param: string $tag Optional filtering by tag return: array list of dates |
getPosts($tag = null, Zend_Date $dt = null, $url = null) X-Ref |
Get posts matching the arguments If no date or url is given, most recent date will be used param: string $tag Optional filtering by tag param: Zend_Date $dt Optional filtering by date param: string $url Optional filtering by url return: Zend_Service_Delicious_PostList |
getAllPosts($tag = null) X-Ref |
Get all posts param: string $tag Optional filtering by tag return: Zend_Service_Delicious_PostList |
getRecentPosts($tag = null, $count = 15) X-Ref |
Get recent posts param: string $tag Optional filtering by tag param: string $count Maximum number of posts to be returned (default 15) return: Zend_Service_Delicious_PostList |
createNewPost($title, $url) X-Ref |
Create new post return: Zend_Service_Delicious_Post |
getUserPosts($user, $count = null, $tag = null) X-Ref |
Get posts of a user param: string $user Owner of the posts param: int $count Number of posts (default 15, max. 100) param: string $tag Optional filtering by tag return: Zend_Service_Delicious_PostList |
getUserTags($user, $atleast = null, $count = null, $sort = 'alpha') X-Ref |
Get tags of a user Returned array has tags as keys and number of posts as values param: string $user Owner of the posts param: int $atleast Include only tags for which there are at least ### number of posts param: int $count Number of tags to get (default all) param: string $sort Order of returned tags ('alpha' || 'count') return: array |
getUserNetwork($user) X-Ref |
Get network of a user param: string $user Owner of the network return: array |
getUserFans($user) X-Ref |
Get fans of a user param: string $user Owner of the fans return: array |
getUrlDetails($url) X-Ref |
Get details on a particular bookmarked URL Returned array contains four elements: - hash - md5 hash of URL - top_tags - array of tags and their respective usage counts - url - URL for which details were returned - total_posts - number of users that have bookmarked URL If URL hasen't been bookmarked null is returned. param: string $url URL for which to get details return: array |
makeRequest($path, array $parms = array() X-Ref |
Handles all GET requests to a web service param: string $path Path param: array $parms Array of GET parameters param: string $type Type of a request ("xml"|"json") return: mixed decoded response from web service |
_xmlResponseToArray(DOMDocument $response, $root, $child, $attKey, $attValue) X-Ref |
Transform XML string to array param: DOMDocument $response param: string $root Name of root tag param: string $child Name of children tags param: string $attKey Attribute of child tag to be used as a key param: string $attValue Attribute of child tag to be used as a value return: array |
_parseXmlPostList(DOMDocument $response) X-Ref |
Constructs Zend_Service_Delicious_PostList from XML response param: DOMDocument $response return: Zend_Service_Delicious_PostList |
_evalXmlResult(DOMDocument $response) X-Ref |
Evaluates XML response param: DOMDocument $response return: void |
Generated: Fri Nov 28 20:29:05 2014 | Cross-referenced by PHPXref 0.7.1 |