|
Moodle
2.2.1
http://www.collinsharper.com
|
Public Member Functions | |
| __construct ($uname=null, $pass=null) | |
| setAuth ($uname, $pass) | |
| getLastUpdate () | |
| getTags () | |
| renameTag ($old, $new) | |
| getBundles () | |
| addBundle ($bundle, array $tags) | |
| deleteBundle ($bundle) | |
| deletePost ($url) | |
| getDates ($tag=null) | |
| getPosts ($tag=null, Zend_Date $dt=null, $url=null) | |
| getAllPosts ($tag=null) | |
| getRecentPosts ($tag=null, $count=15) | |
| createNewPost ($title, $url) | |
| getUserPosts ($user, $count=null, $tag=null) | |
| getUserTags ($user, $atleast=null, $count=null, $sort= 'alpha') | |
| getUserNetwork ($user) | |
| getUserFans ($user) | |
| getUrlDetails ($url) | |
| makeRequest ($path, array $parms=array(), $type= 'xml') | |
Data Fields | |
| const | API_URI = 'https://api.del.icio.us' |
| const | PATH_UPDATE = '/v1/posts/update' |
| const | PATH_TAGS = '/v1/tags/get' |
| const | PATH_TAG_RENAME = '/v1/tags/rename' |
| const | PATH_BUNDLES = '/v1/tags/bundles/all' |
| const | PATH_BUNDLE_DELETE = '/v1/tags/bundles/delete' |
| const | PATH_BUNDLE_ADD = '/v1/tags/bundles/set' |
| const | PATH_DATES = '/v1/posts/dates' |
| const | PATH_POST_DELETE = '/v1/posts/delete' |
| const | PATH_POSTS_GET = '/v1/posts/get' |
| const | PATH_POSTS_ALL = '/v1/posts/all' |
| const | PATH_POSTS_ADD = '/v1/posts/add' |
| const | PATH_POSTS_RECENT = '/v1/posts/recent' |
| const | JSON_URI = 'http://del.icio.us' |
| const | JSON_POSTS = '/feeds/json/%s/%s' |
| const | JSON_TAGS = '/feeds/json/tags/%s' |
| const | JSON_NETWORK = '/feeds/json/network/%s' |
| const | JSON_FANS = '/feeds/json/fans/%s' |
| const | JSON_URL = '/feeds/json/url/data' |
Protected Attributes | |
| $_rest | |
| $_authUname | |
| $_authPass | |
Static Protected Attributes | |
| static | $_lastRequestTime = 0 |
Definition at line 60 of file Delicious.php.
| __construct | ( | $ | uname = null, |
| $ | pass = null |
||
| ) |
Constructs a new del.icio.us Web Services Client
| string | $uname | Client username |
| string | $pass | Client password |
Definition at line 119 of file Delicious.php.

Adds a new bundle
| string | $bundle | Name of new bundle |
| array | $tags | Array of tags |
Definition at line 217 of file Delicious.php.

| createNewPost | ( | $ | title, |
| $ | url | ||
| ) |
| deleteBundle | ( | $ | bundle | ) |
Delete a bundle
| string | $bundle | Name of bundle to be deleted |
Definition at line 233 of file Delicious.php.

| deletePost | ( | $ | url | ) |
Delete a post
| string | $url | URL of post to be deleted |
Definition at line 248 of file Delicious.php.

| getAllPosts | ( | $ | tag = null | ) |
Get all posts
| string | $tag | Optional filtering by tag |
Definition at line 312 of file Delicious.php.

| getBundles | ( | ) |
Get all bundles, returning an array with bundles as keys and array of tags as values
Definition at line 199 of file Delicious.php.

| getDates | ( | $ | tag = null | ) |
Get number of posts by date
Returns array where keys are dates and values are numbers of posts
| string | $tag | Optional filtering by tag |
Definition at line 265 of file Delicious.php.

| getLastUpdate | ( | ) |
Get time of the last update
| Zend_Service_Delicious_Exception |
Definition at line 147 of file Delicious.php.

Get posts matching the arguments
If no date or url is given, most recent date will be used
| string | $tag | Optional filtering by tag |
| Zend_Date | $dt | Optional filtering by date |
| string | $url | Optional filtering by url |
| Zend_Service_Delicious_Exception |
Definition at line 288 of file Delicious.php.

| getRecentPosts | ( | $ | tag = null, |
| $ | count = 15 |
||
| ) |
Get recent posts
| string | $tag | Optional filtering by tag |
| string | $count | Maximum number of posts to be returned (default 15) |
Definition at line 331 of file Delicious.php.

| getTags | ( | ) |
Get all tags, returning an array with tags as keys and number of corresponding posts as values
Definition at line 171 of file Delicious.php.

| getUrlDetails | ( | $ | url | ) |
Get details on a particular bookmarked URL
Returned array contains four elements:
If URL hasen't been bookmarked null is returned.
| string | $url | URL for which to get details |
Definition at line 444 of file Delicious.php.

| getUserFans | ( | $ | user | ) |
Get fans of a user
| string | $user | Owner of the fans |
Definition at line 424 of file Delicious.php.

| getUserNetwork | ( | $ | user | ) |
Get network of a user
| string | $user | Owner of the network |
Definition at line 412 of file Delicious.php.

| getUserPosts | ( | $ | user, |
| $ | count = null, |
||
| $ | tag = null |
||
| ) |
Get posts of a user
| string | $user | Owner of the posts |
| int | $count | Number of posts (default 15, max. 100) |
| string | $tag | Optional filtering by tag |
Definition at line 364 of file Delicious.php.

| getUserTags | ( | $ | user, |
| $ | atleast = null, |
||
| $ | count = null, |
||
| $ | sort = 'alpha' |
||
| ) |
Get tags of a user
Returned array has tags as keys and number of posts as values
| string | $user | Owner of the posts |
| int | $atleast | Include only tags for which there are at least ### number of posts |
| int | $count | Number of tags to get (default all) |
| string | $sort | Order of returned tags ('alpha' || 'count') |
Definition at line 388 of file Delicious.php.

| makeRequest | ( | $ | path, |
| array $ | parms = array(), |
||
| $ | type = 'xml' |
||
| ) |
Handles all GET requests to a web service
| string | $path | Path |
| array | $parms | Array of GET parameters |
| string | $type | Type of a request ("xml"|"json") |
| Zend_Service_Delicious_Exception |
Definition at line 466 of file Delicious.php.

| renameTag | ( | $ | old, |
| $ | new | ||
| ) |
Rename a tag
| string | $old | Old tag name |
| string | $new | New tag name |
Definition at line 185 of file Delicious.php.

| setAuth | ( | $ | uname, |
| $ | pass | ||
| ) |
Set client username and password
| string | $uname | Client user name |
| string | $pass | Client password |
Definition at line 133 of file Delicious.php.

$_authPass [protected] |
Definition at line 103 of file Delicious.php.
$_authUname [protected] |
Definition at line 96 of file Delicious.php.
$_lastRequestTime = 0 [static, protected] |
Definition at line 110 of file Delicious.php.
$_rest [protected] |
Definition at line 89 of file Delicious.php.
| const API_URI = 'https://api.del.icio.us' |
Definition at line 62 of file Delicious.php.
Definition at line 81 of file Delicious.php.
| const JSON_NETWORK = '/feeds/json/network/%s' |
Definition at line 80 of file Delicious.php.
| const JSON_POSTS = '/feeds/json/%s/%s' |
Definition at line 78 of file Delicious.php.
Definition at line 79 of file Delicious.php.
| const JSON_URI = 'http://del.icio.us' |
Definition at line 77 of file Delicious.php.
Definition at line 82 of file Delicious.php.
| const PATH_BUNDLE_ADD = '/v1/tags/bundles/set' |
Definition at line 69 of file Delicious.php.
| const PATH_BUNDLE_DELETE = '/v1/tags/bundles/delete' |
Definition at line 68 of file Delicious.php.
| const PATH_BUNDLES = '/v1/tags/bundles/all' |
Definition at line 67 of file Delicious.php.
| const PATH_DATES = '/v1/posts/dates' |
Definition at line 70 of file Delicious.php.
| const PATH_POST_DELETE = '/v1/posts/delete' |
Definition at line 71 of file Delicious.php.
| const PATH_POSTS_ADD = '/v1/posts/add' |
Definition at line 74 of file Delicious.php.
| const PATH_POSTS_ALL = '/v1/posts/all' |
Definition at line 73 of file Delicious.php.
| const PATH_POSTS_GET = '/v1/posts/get' |
Definition at line 72 of file Delicious.php.
| const PATH_POSTS_RECENT = '/v1/posts/recent' |
Definition at line 75 of file Delicious.php.
| const PATH_TAG_RENAME = '/v1/tags/rename' |
Definition at line 66 of file Delicious.php.
| const PATH_TAGS = '/v1/tags/get' |
Definition at line 65 of file Delicious.php.
| const PATH_UPDATE = '/v1/posts/update' |
Definition at line 64 of file Delicious.php.