event; $class = $log->object_class; $tmp = new $class(); $object = $tmp->getObjectFromID($log->object_id); // Exists and we have access to it if (is_a($object, $class)) { // See if anything can handle it $tam = ""; // test if view exist and if so $tam = elgg_view("river/$class/$event", array( 'performed_by' => get_entity($log->performed_by_guid), 'log_entry' => $log, 'object' => $object )); if ($tam) { $river[] = $tam; $cnt--; } } // Increase offset $off++; } } } while ( ($cnt > 0) && (!$exit) ); return $river; } ?>