Пример #1
0
 /**
  * Return HTML formatted stream for events
  * @param type $eventid 
  */
 public function getStreamHTML($event)
 {
     CFactory::load('libraries', 'activities');
     $activities = new CActivities();
     $streamHTML = $activities->getAppHTML(array('app' => CActivities::APP_EVENTS, 'eventid' => $event->id, 'apptype' => 'event'));
     return $streamHTML;
 }
Пример #2
0
 /**
  * Return HTML formatted stream for groups
  * @param object $group 
  */
 public function getStreamHTML($group)
 {
     CFactory::load('libraries', 'activities');
     $activities = new CActivities();
     $streamHTML = $activities->getAppHTML(array('app' => CActivities::APP_GROUPS, 'groupid' => $group->id, 'apptype' => 'group'));
     return $streamHTML;
 }