if (!empty($object)) {
Event::handle('EndFindLocalActivityObject', array($object->getUri(), $type, $object));
} else {
- throw new Exception('Could not find any activityobject stored locally with given URI');
+ throw new ServerException('Could not find any activityobject stored locally with given URI');
}
return $object;
}
return $profile;
}
+
+ static public function typeToTitle($type)
+ {
+ return ucfirst(self::resolveUri($type, true));
+ }
+
+ static public function verbToTitle($verb)
+ {
+ return ucfirst(self::resolveUri($verb, true));
+ }
}