コード例 #1
0
/**
 * 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;
}
コード例 #2
0
ファイル: annotations.php プロジェクト: jricher/Elgg
/**
 * 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;
}
コード例 #3
0
ファイル: annotations.php プロジェクト: nachopavon/Elgg
/**
 * 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;
}
コード例 #4
0
ファイル: deprecated-1.9.php プロジェクト: gzachos/elgg_ellak
/**
 * 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;
}
コード例 #5
0
ファイル: metadata.php プロジェクト: eokyere/elgg
/**
 * 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;
}