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)) if ($object instanceof $class) { // If no relationship defined or it matches $relationship if ( (!$relationship) || ( ($relationship) && (check_entity_relationship($by_user, $relationship, $log->getObjectOwnerGUID())) ) ) { // See if anything can handle it $tam = ""; // test if view exist and if so if (isset($by_user_obj) && $by_user_obj instanceof ElggUser) { } else { $by_user_obj = get_entity($log->performed_by_guid); } $tam = elgg_view("river/$class/$event", array( 'performed_by' => $by_user_obj, 'log_entry' => $log, 'object' => $object )); if ($tam) { $river[] = $tam; $cnt--; } } } // Increase offset $off++; } } } while ( ($cnt > 0) && (!$exit) ); return $river; } ?>