Пример #1
0
function preg_get_handle_by_webid($array)
{
    $webid = urldecode($array[1]);
    $person = new MyProfile($webid, BASE_URI, SPARQL_ENDPOINT);
    $person->load();
    $name = $person->get_name();
    $nick = $person->get_nick();
    $ret = '';
    $ret .= ' <a href="view.php?webid=' . urlencode($webid) . '">';
    $ret .= $nick != null ? '@' . $nick : '@' . $name;
    $ret .= '</a>';
    return $ret;
}