Esempio n. 1
0
 /**
  * Return all newer activities from the given streamid,
  * @param  int $streamid most recent stream id
  * @param  string $filter public, mine, friends, groups, events
  * @return [type]           [description]
  */
 public function ajaxGetRecentActivities($streamid, $filter = null, $filterId = null, $filterValue = null)
 {
     $response = new JAXResponse();
     $config = CFactory::getConfig();
     $my = CFactory::getUser();
     $html = '';
     $activitiesLib = new CActivities();
     $html = $activitiesLib->getLatestStream($streamid, $filter, $filterId, $filterValue);
     $json = array('html' => $html);
     die(json_encode($json));
     // $response->addScriptCall('joms.activities.appendNewStream', $html, $config->get('stream_refresh_interval'));
     // return $response->sendResponse();
 }