GSoC2008JActivity

From MWWiki

Jump to: navigation, search

Back to GSoC 2008

<?php
 
/**
 * Description of the script here.
 *
 * Created on Jul 22, 2008
 *
 * @package
 * @author Shannon Quinn
 * @version 0.1
 */
 
class JoomlaActivitiesService extends ActivitiesService {
 
  /**
   * Returns a list of activities that correspond to the passed in person ids.
   * 
   * @access public
   * @param ids The ids of the people to fetch activities for.
   * @param token A valid SecurityToken
   * @return a response item with the list of activities.
   */
  public function getActivities(UserId $userId, 
                                $groupId,
                                $first,
                                $max,
                                SecurityToken $token) {
    return null;
  }
 
  public function getActivity(UserId $userId, 
                              $groupId, 
                              $activityId,
                              $first,
                              $max,
                              SecurityToken $token) {
    return null;
  }
 
  /**
   * Creates the passed in activity for the given user. Once createActivity is
   * called, getActivities will be able to return the Activity.
   * 
   * @access public
   * @param personId The id of the person to create the activity for.
   * @param activity The activity to create.
   * @param token A valid SecurityToken
   * @return a response item containing any errors
   */
  public function createActivity(UserId $userId, 
                                 $activity, 
                                 SecurityToken $token) {
    return null;
  }
}
 
?>