Services_Digg
[ class tree: Services_Digg ] [ index: Services_Digg ] [ all elements ]

Class: Services_Digg_User

Source Location: /Services_Digg-0.1.2/Services/Digg/User.php

Class Overview

Services_Digg_Common
   |
   --Services_Digg_User

Services_Digg_User


Author(s):

Methods


Child classes:

DiggAPIUser
DiggAPIUser

Inherited Variables

Inherited Methods


Class Details

[line 34]
Services_Digg_User


[ Top ]


Method Detail

getCommentActivity   [line 73]

void getCommentActivity( string $username, [array $params = array()])

Get a user's comment activity
  • Throws: Services_Digg_Exception
  • Access: public

Overridden in child classes as:

DiggAPIUser::getCommentActivity()
Get a user's comment activity

Parameters:

string   $username   — 
array   $params   — 

[ Top ]

getDiggsActivity   [line 87]

void getDiggsActivity( string $username, [array $params = array()])

Get a user's digg activity
  • Throws: Services_Digg_Exception
  • Access: public

Overridden in child classes as:

DiggAPIUser::getDiggsActivity()
Get a user's digg activity

Parameters:

string   $username   — 
array   $params   — 

[ Top ]

isFan   [line 126]

boolean isFan( string $username, string $fan)

Is the person a fan of this user

Checks to see if the given $username is a fan of the currently instantiated user from $this->name.

  • Access: public

Overridden in child classes as:

DiggAPIUser::isFan()
Is the person a fan of this user

Parameters:

string   $username   —  Username to check against
string   $fan   —  Username to check for

[ Top ]

isFriend   [line 104]

boolean isFriend( string $username, string $friend)

Is the user friends with a person

Checks to see if the given $username is friends with the currently instantiated user from $this->name.

  • Access: public

Overridden in child classes as:

DiggAPIUser::isFriend()
Is the user friends with a person

Parameters:

string   $username   —  Username to check against
string   $friend   —  Username to check for

[ Top ]

__call   [line 49]

mixed __call( string $function, array $args)

__call

This overloaded method handles '/user/{user name}/{endpoint}', such as '/user/joestump/diggs'. It does not handle more detailed endpoints, such ass '/user/joestump/activity/comments', which has its own method.

  • Throws: Services_Digg_Exception
  • Access: public

Overridden in child classes as:

DiggAPIUser::__call()
__call

Parameters:

string   $function   —  Simple endpoint for users
array   $args   —  Arguments to pass to API

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:06:30 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.