/**
 * Get the URL for this metadata
 *
 * By default this links to the export handler in the current view.
 *
 * @param int $id Metadata ID
 *
 * @return mixed
 */
function get_metadata_url($id)
{
    $id = (int) $id;
    if ($extender = elgg_get_metadata_from_id($id)) {
        return get_extender_url($extender);
    }
    return false;
}
Beispiel #2
0
/**
 * Get the URL for this item of metadata, by default this links to the export handler in the current view.
 *
 * @param int $id
 */
function get_annotation_url($id)
{
    $id = (int) $id;
    if ($extender = get_annotation($id)) {
        return get_extender_url($extender);
    }
    return false;
}
Beispiel #3
0
/**
 * Get the URL for this item of metadata, by default this links to the
 * export handler in the current view.
 *
 * @param int $id Annotation id
 *
 * @return mixed
 */
function get_annotation_url($id)
{
    $id = (int) $id;
    if ($extender = elgg_get_annotation_from_id($id)) {
        return get_extender_url($extender);
    }
    return false;
}
Beispiel #4
0
/**
 * Get the URL for this annotation.
 *
 * @param int $id Annotation id
 *
 * @return string|bool False on failure
 * @deprecated 1.9 Use method getURL() on annotation object
 */
function get_annotation_url($id)
{
    elgg_deprecated_notice(__FUNCTION__ . ' is deprecated. Use \\ElggAnnotation::getURL()', 1.9);
    $id = (int) $id;
    if ($extender = elgg_get_annotation_from_id($id)) {
        return get_extender_url($extender);
    }
    return false;
}
Beispiel #5
0
/**
 * Get the URL for this item of metadata, by default this links to the export handler in the current view.
 *
 * @param int $id
 */
function get_metadata_url($id)
{
    $id = (int) $id;
    if ($extender = get_metadata($id)) {
        return get_extender_url($extender);
    }
    return false;
}