9 require_once(dirname(dirname(__FILE__)) .
"/start.php");
28 $query =
"GUID:" .
$guid .
" could not be found, or you can not access it.";
29 throw new \InvalidParameterException($query);
40 $msg =
"GUID:" .
$guid .
" could not be found, or you can not access it.";
41 throw new \InvalidParameterException($msg);
51 throw new \InvalidParameterException($msg);
54 $m = new \ElggMetadata();
82 $msg =
"Sorry, I don't know how to export '" .
$type .
"'";
83 throw new \InvalidParameterException($msg);
88 throw new \InvalidParameterException(
"Could not find any data.");
94 throw new \InvalidParameterException(
"Does not belong to entity.");
97 $title =
"$type:$id_or_name";
98 $body =
elgg_view(
"export/metadata", array(
"metadata" =>
$m,
"uuid" => $uuid));
104 throw new \InvalidParameterException(
"Does not belong to entity or refer to entity.");
107 $title =
"$type:$id_or_name";
108 $body =
elgg_view(
"export/relationship", array(
"relationship" =>
$r,
"uuid" => $uuid));
113 throw new \InvalidParameterException(
"Missing parameter, you need to provide a GUID.");
elgg_get_annotation_from_id($id)
Get a specific annotation by its id.
guid_to_uuid($guid)
Generate a UUID from a given GUID.
elgg_trigger_plugin_hook($hook, $type, $params=null, $returnvalue=null)
get_entity($guid)
Loads and returns an entity object from a guid.
get_relationship($id)
Get a relationship by its ID.
ui datepicker calendar ui state default
elgg_view_layout($layout_name, $vars=array())
Displays a layout with optional parameters.
elgg_view_page($title, $body, $page_shell='default', $vars=array())
Assembles and outputs a full page.
elgg_view($view, $vars=array(), $bypass=false, $ignored=false, $viewtype='')
Return a parsed view.