12     elgg_deprecated_notice(
"All list_entities* functions were deprecated in 1.8.  Use elgg_list_entities* instead.", 1.8);
 
   15         'type' => $entity_type, 
'subtype' => $entity_subtype, 
'owner_guids' => 
$owner_guid,
 
   16         'limit' => 
$limit, 
'full_view' => $fullview, 
'list_type_toggle' => $listtypetoggle,
 
   89 function get_entities_from_annotations_calculate_x($sum = 
"sum", $entity_type = 
"", $entity_subtype = 
"", 
$name = 
"", $mdname = 
'', $mdvalue = 
'', 
$owner_guid = 0, 
$limit = 10, 
$offset = 0, $orderdir = 
'desc', 
$count = 
false) {
 
   91     $msg = 
'get_entities_from_annotations_calculate_x() is deprecated by elgg_get_entities_from_annotation_calculation().';
 
  103     if ($entity_subtype) {
 
  104         $options[
'subtypes'] = $entity_subtype;
 
  110         $options[
'metadata_names'] = $mdname;
 
  114         $options[
'metadata_values'] = $mdvalue;
 
  129     $options[
'order_by'] = 
"annotation_calculation $orderdir";
 
  162     $msg = 
'get_entities_from_annotation_count() is deprecated by elgg_get_entities_from_annotation_calculation().';
 
  174     if ($entity_subtype) {
 
  175         $options[
'subtypes'] = $entity_subtype;
 
  181         $options[
'metadata_names'] = $mdname;
 
  185         $options[
'metadata_values'] = $mdvalue;
 
  199     $options[
'order_by'] = 
"annotation_calculation $orderdir";
 
  225 function list_entities_from_annotation_count($entity_type = 
"", $entity_subtype = 
"", 
$name = 
"", 
$limit = 10, 
$owner_guid = 0, $group_guid = 0, $asc = 
false, $fullview = 
true, $listtypetoggle = 
false, 
$pagination = 
true, $orderdir = 
'desc') {
 
  227     $msg = 
'list_entities_from_annotation_count() is deprecated by elgg_list_entities_from_annotation_calculation().';
 
  239     if ($entity_subtype) {
 
  240         $options[
'subtypes'] = $entity_subtype;
 
  255     $options[
'list_type_toggle'] = $listtypetoggle;
 
  261     $options[
'order_by'] = 
"annotation_calculation $orderdir";
 
  280 function add_to_register($register_name, $subregister_name, $subregister_value, $children_array = array()) {
 
  284     if (empty($register_name) || empty($subregister_name)) {
 
  288     if (!isset(
$CONFIG->registers)) {
 
  292     if (!isset(
$CONFIG->registers[$register_name])) {
 
  293         $CONFIG->registers[$register_name] = array();
 
  296     $subregister = 
new stdClass;
 
  297     $subregister->name = $subregister_name;
 
  298     $subregister->value = $subregister_value;
 
  300     if (is_array($children_array)) {
 
  301         $subregister->children = $children_array;
 
  304     $CONFIG->registers[$register_name][$subregister_name] = $subregister;
 
  325     if (empty($register_name) || empty($subregister_name)) {
 
  329     if (!isset(
$CONFIG->registers)) {
 
  333     if (!isset(
$CONFIG->registers[$register_name])) {
 
  337     if (isset(
$CONFIG->registers[$register_name][$subregister_name])) {
 
  338         unset(
$CONFIG->registers[$register_name][$subregister_name]);
 
  358     if ($register_name == 
'menu') {
 
  367             $subregister = 
new stdClass;
 
  368             $subregister->name = 
$item->getText();
 
  369             $subregister->value = 
$item->getHref();
 
  370             $menu[$subregister->name] = $subregister;
 
  375     if (isset(
$CONFIG->registers[$register_name])) {
 
  376         return $CONFIG->registers[$register_name];
 
  420     elgg_deprecated_notice(
"register_elgg_event_handler() was deprecated by elgg_register_event_handler()", 1.8);
 
  480     elgg_deprecated_notice(
"register_plugin_hook() was deprecated by elgg_register_plugin_hook_handler()", 1.8);
 
  495     elgg_deprecated_notice(
"unregister_plugin_hook() was deprecated by elgg_unregister_plugin_hook_handler()", 1.8);
 
  566     $callstack = debug_backtrace();
 
  567     $stack_element = 
false;
 
  569     foreach ($callstack as $call) {
 
  570         if (is_array($function)) {
 
  571             if ((strcmp($call[
'class'], $function[0]) == 0) && (strcmp($call[
'function'], $function[1]) == 0)) {
 
  572                 $stack_element = $call;
 
  575             if (strcmp($call[
'function'], $function) == 0) {
 
  576                 $stack_element = $call;
 
  581     if (!$stack_element) {
 
  589         if (is_array($function)) {
 
  590             $mirror = 
new ReflectionMethod($function[0], $function[1]);
 
  592             $mirror = 
new ReflectionFunction($function);
 
  595         if ((!$mirror) || (strcmp($file, $mirror->getFileName()) != 0)) {
 
  632         $callstack = debug_backtrace();
 
  634         foreach ($callstack as $call) {
 
  635             $call[
'file'] = str_replace(
"\\", 
"/", $call[
'file']);
 
  637             if ($include_subdirs) {
 
  638                 if (strpos($call[
'file'], 
$path) === 0) {
 
  641                         $callstack[1][
'file'] = str_replace(
"\\", 
"/", $callstack[1][
'file']);
 
  642                         if ($callstack[1] === $call) {
 
  650                 if (strcmp(
$path, $call[
'file']) == 0) {
 
  652                         if ($callstack[1] === $call) {
 
  666         system_message(
"Gatekeeper'd function called from {$callstack[1]['file']}:" . 
"{$callstack[1]['line']}\n\nStack trace:\n\n" . print_r($callstack, 
true));
 
  685     elgg_deprecated_notice(
'elgg_get_entity_owner_where_sql() is deprecated by elgg_get_guid_based_where_sql().', 1.8);
 
  704     elgg_deprecated_notice(
'elgg_get_entity_container_where_sql() is deprecated by elgg_get_guid_based_where_sql().', 1.8);
 
  722     elgg_deprecated_notice(
'elgg_get_entity_site_where_sql() is deprecated by elgg_get_guid_based_where_sql().', 1.8);
 
  745     elgg_deprecated_notice(
"get_objects_in_group was deprected in 1.8.  Use elgg_get_entities() instead", 1.8);
 
  753     if ($order_by == 
"") {
 
  754         $order_by = 
"e.time_created desc";
 
  759     $site_guid = (int)$site_guid;
 
  760     if ($site_guid == 0) {
 
  761         $site_guid = 
$CONFIG->site_guid;
 
  764     $container_guid = (int)$group_guid;
 
  765     if ($container_guid == 0) {
 
  771     $where[] = 
"e.type='object'";
 
  777         $where[] = 
"e.subtype=$subtype";
 
  782             $where[] = 
"e.container_guid = '$owner_guid'";
 
  787             $where[] = 
"e.container_guid in ({$owner_guid})";
 
  790     if ($site_guid > 0) {
 
  791         $where[] = 
"e.site_guid = {$site_guid}";
 
  794     if ($container_guid > 0) {
 
  795         $where[] = 
"e.container_guid = {$container_guid}";
 
  799         $query = 
"SELECT * from {$CONFIG->dbprefix}entities e" . 
" join {$CONFIG->dbprefix}objects_entity o on e.guid=o.guid where ";
 
  801         $query = 
"SELECT count(e.guid) as total from {$CONFIG->dbprefix}entities e" . 
" join {$CONFIG->dbprefix}objects_entity o on e.guid=o.guid where ";
 
  803     foreach ($where as $w) {
 
  804         $query .= 
" $w and ";
 
  810         $query .= 
" order by $order_by";
 
  814             $query .= 
" limit $offset, $limit";
 
  817         $dt = 
get_data($query, 
"entity_row_to_elggstar");
 
  821         return $total->total;
 
  842     elgg_deprecated_notice(
"list_entities_groups was deprecated in 1.8.  Use elgg_list_entities() instead.", 1.8);
 
  868 function get_entities_from_metadata_groups($group_guid, $meta_name, $meta_value = 
"", $entity_type = 
"", $entity_subtype = 
"", 
$owner_guid = 0, 
$limit = 10, 
$offset = 0, $order_by = 
"", $site_guid = 0, 
$count = 
false) {
 
  879     if ($order_by == 
"") {
 
  880         $order_by = 
"e.time_created desc";
 
  883     $site_guid = (int)$site_guid;
 
  891     if ($site_guid == 0) {
 
  892         $site_guid = 
$CONFIG->site_guid;
 
  895     $container_guid = (int)$group_guid;
 
  896     if ($container_guid == 0) {
 
  902     if ($entity_type != 
"") {
 
  903         $where[] = 
"e.type='$entity_type'";
 
  905     if ($entity_subtype) {
 
  906         $where[] = 
"e.subtype=$entity_subtype";
 
  908     if ($meta_name != 
"") {
 
  909         $where[] = 
"m.name_id='$meta_n'";
 
  911     if ($meta_value != 
"") {
 
  912         $where[] = 
"m.value_id='$meta_v'";
 
  914     if ($site_guid > 0) {
 
  915         $where[] = 
"e.site_guid = {$site_guid}";
 
  917     if ($container_guid > 0) {
 
  918         $where[] = 
"e.container_guid = {$container_guid}";
 
  922         $where[] = 
"e.container_guid in (" . implode(
",", 
$owner_guid) . 
")";
 
  924         $where[] = 
"e.container_guid = {$owner_guid}";
 
  928         $query = 
"SELECT distinct e.* ";
 
  930         $query = 
"SELECT count(e.guid) as total ";
 
  933     $query .= 
"from {$CONFIG->dbprefix}entities e" . 
" JOIN {$CONFIG->dbprefix}metadata m on e.guid = m.entity_guid " . 
" JOIN {$CONFIG->dbprefix}objects_entity o on e.guid = o.guid where";
 
  935     foreach ($where as $w) {
 
  936         $query .= 
" $w and ";
 
  943         $query .= 
" order by $order_by limit $offset, $limit"; 
 
  944         return get_data($query, 
"entity_row_to_elggstar");
 
  975     if (!is_array($meta_array) || 
sizeof($meta_array) == 0) {
 
  983     foreach ($meta_array as $meta_name => $meta_value) {
 
  986         $join .= 
" JOIN {$CONFIG->dbprefix}metadata m{$mindex} on e.guid = m{$mindex}.entity_guid" . 
" JOIN {$CONFIG->dbprefix}objects_entity o on e.guid = o.guid ";
 
  988         if ($meta_name != 
"") {
 
  989             $where[] = 
"m{$mindex}.name_id='$meta_n'";
 
  992         if ($meta_value != 
"") {
 
  993             $where[] = 
"m{$mindex}.value_id='$meta_v'";
 
 1003     if ($order_by == 
"") {
 
 1004         $order_by = 
"e.time_created desc";
 
 1009     $site_guid = (int)$site_guid;
 
 1010     if ($site_guid == 0) {
 
 1011         $site_guid = 
$CONFIG->site_guid;
 
 1016     if ($entity_type != 
"") {
 
 1017         $where[] = 
"e.type = '{$entity_type}'";
 
 1020     if ($entity_subtype) {
 
 1021         $where[] = 
"e.subtype = {$entity_subtype}";
 
 1024     if ($site_guid > 0) {
 
 1025         $where[] = 
"e.site_guid = {$site_guid}";
 
 1029         $where[] = 
"e.owner_guid = {$owner_guid}";
 
 1032     if ($group_guid > 0) {
 
 1033         $where[] = 
"e.container_guid = {$group_guid}";
 
 1037         $query = 
"SELECT count(e.guid) as total ";
 
 1039         $query = 
"SELECT distinct e.* ";
 
 1042     $query .= 
" from {$CONFIG->dbprefix}entities e {$join} where";
 
 1043     foreach ($where as $w) {
 
 1044         $query .= 
" $w and ";
 
 1049         $query .= 
" order by $order_by limit $offset, $limit"; 
 
 1050         return get_data($query, 
"entity_row_to_elggstar");
 
 1077     elgg_deprecated_notice(
'list_entities_in_area() was deprecated. Use elgg_list_entities_from_location()', 1.8);
 
 1104     $options[
'list_type_toggle'] = $listtypetoggle;
 
 1126     elgg_deprecated_notice(
'list_entities_location() was deprecated. Use elgg_list_entities_from_metadata()', 1.8);
 
 1150 function get_entities_in_area($lat, $long, $radius, 
$type = 
"", 
$subtype = 
"", 
$owner_guid = 0, $order_by = 
"", 
$limit = 10, 
$offset = 0, 
$count = 
false, $site_guid = 0, $container_guid = NULL) {
 
 1151     elgg_deprecated_notice(
'get_entities_in_area() was deprecated by elgg_get_entities_from_location()!', 1.8);
 
 1161         if (is_null($container_guid)) {
 
 1182     if ($container_guid) {
 
 1183         if (is_array($container_guid)) {
 
 1184             $options[
'container_guids'] = $container_guid;
 
 1186             $options[
'container_guid'] = $container_guid;
 
 1235     elgg_deprecated_notice(
'list_entities_from_metadata() was deprecated by elgg_list_entities_from_metadata()!', 1.8);
 
 1240         'metadata_name' => $meta_name,
 
 1241         'metadata_value' => $meta_value,
 
 1242         'type' => $entity_type,
 
 1243         'subtype' => $entity_subtype,
 
 1247         'metadata_case_sensitive' => $case_sensitive
 
 1283         'list_entities_from_metadata_multi', 
'elgg_get_entities_from_metadata')), 1.8);
 
 1322         'section' => $group,);
 
 1325         $item[
'selected'] = 
true;
 
 1329         $js = 
"onclick=\"javascript:return confirm('" . 
elgg_echo(
'deleteconfirm') . 
"')\"";
 
 1330         $item[
'vars'] = array(
'js' => 
$js);
 
 1365         'class' => 
'elgg-menu-owner-block',));
 
 1385         'href' => $menu_url,));
 
 1445     $string = preg_replace(
"/\s([a-zA-Z]+:\/\/[a-z][a-z0-9\_\.\-]*[a-z]{2,6}" . 
"[a-zA-Z0-9\/\*\-\?\&\%\=]*)([\s|\.|\,])/iu", 
" ", 
$string);
 
 1448     $string = preg_replace(
"/\s(www\.[a-z][a-z0-9\_\.\-]*[a-z]{2,6}" . 
"[a-zA-Z0-9\/\*\-\?\&\%\=]*)([\s|\.|\,])/iu", 
" ", 
$string);
 
 1451     $string = preg_replace(
"/\s([a-zA-Z][a-zA-Z0-9\_\.\-]*[a-zA-Z]" . 
"*\@[a-zA-Z][a-zA-Z0-9\_\.\-]*[a-zA-Z]{2,6})([\s|\.|\,])/iu", 
" ", 
$string);
 
 1457     $terms = explode(
' ', 
$string);
 
 1479     if (!is_array(
$CONFIG->wordblacklist)) {
 
 1522     elgg_deprecated_notice(
"add_page_owner_handler() was deprecated by the plugin hook 'page_owner', 'system'.", 1.8);
 
 1579     elgg_deprecated_notice(
'get_plugin_list() is deprecated by elgg_get_plugin_ids_in_dir() or elgg_get_plugins()', 1.8);
 
 1588             $index = ($i + 1) * 10;
 
 1612     $msg = 
'regenerate_plugin_list() is (sorta) deprecated by elgg_generate_plugin_entities() and' 
 1613             . 
' elgg_set_plugin_priorities().';
 
 1621             ksort($pluginorder, SORT_NUMERIC);
 
 1666     } 
catch(Exception 
$e) {
 
 1670     return $manifest->getManifest();
 
 1687     if (strpos($manifest_elgg_version_string, 
'.') === 
false) {
 
 1689         $req_version = (int)$manifest_elgg_version_string;
 
 1708     elgg_deprecated_notice(
'find_plugin_setting() is deprecated by elgg_get_calling_plugin_entity() or elgg_get_plugin_from_id()', 1.8);
 
 1744         if ($status == 
'enabled' && !
$plugin->isActive()) {
 
 1746         } elseif ($status == 
'disabled' && 
$plugin->isActive()) {
 
 1752                 'active' => 
$plugin->isActive(),
 
 1753                 'manifest' => 
$plugin->getManifest()->getManifest()
 
 1783     $site_guid = (int) $site_guid;
 
 1786         $site_guid = 
$site->guid;
 
 1791     } 
catch(Exception 
$e) {
 
 1795     if (!
$plugin->canActivate($site_guid)) {
 
 1799     return $plugin->activate($site_guid);
 
 1824     $site_guid = (int) $site_guid;
 
 1827         $site_guid = 
$site->guid;
 
 1832     } 
catch(Exception 
$e) {
 
 1836     return $plugin->deactivate($site_guid);
 
 1874 $container_guid = 
null) {
 
 1875     elgg_deprecated_notice(
'get_entities_from_private_setting() was deprecated by elgg_get_entities_from_private_setting()!', 1.8);
 
 1884         if (is_null($container_guid)) {
 
 1905     if ($container_guid) {
 
 1906         if (is_array($container_guid)) {
 
 1907             $options[
'container_guids'] = $container_guid;
 
 1909             $options[
'container_guid'] = $container_guid;
 
 1953 $site_guid = 0, $container_guid = 
null) {
 
 1955     elgg_deprecated_notice(
'get_entities_from_private_setting_multi() was deprecated by elgg_get_entities_from_private_settings()!', 1.8);
 
 1960     foreach (
$name as $setting_name => $setting_value) {
 
 1961         $pairs[] = array(
'name' => $setting_name, 
'value' => $setting_value);
 
 1963     $options[
'private_setting_name_value_pairs'] = $pairs;
 
 1967         if (is_null($container_guid)) {
 
 1988     if ($container_guid) {
 
 1989         if (is_array($container_guid)) {
 
 1990             $options[
'container_guids'] = $container_guid;
 
 1992             $options[
'container_guid'] = $container_guid;
 
 2040 $fullview = 
true, $listtypetoggle = 
false, 
$pagination = 
true, $order_by = 
'') {
 
 2042     elgg_deprecated_notice(
"list_entities_from_relationship was deprecated by elgg_list_entities_from_relationship()!", 1.8);
 
 2044         'relationship' => $relationship,
 
 2045         'relationship_guid' => $relationship_guid,
 
 2046         'inverse_relationship' => $inverse_relationship,
 
 2050         'order_by' => $order_by,
 
 2052         'full_view' => $fullview,
 
 2053         'list_type_toggle' => $listtypetoggle,
 
 2079     elgg_deprecated_notice(
'get_entities_by_relationship_count() is deprecated by elgg_get_entities_from_relationship_count()', 1.8);
 
 2083     $options[
'relationship'] = $relationship;
 
 2087     $options[
'inverse_relationship'] = !$inverse_relationship;
 
 2139     elgg_deprecated_notice(
'list_entities_by_relationship_count() was deprecated by elgg_list_entities_from_relationship_count()', 1.8);
 
 2143     $options[
'relationship'] = $relationship;
 
 2147     $options[
'inverse_relationship'] = !$inverse_relationship;
 
 2190 $inverse_relationship = 
false, $meta_name = 
"", $meta_value = 
"", 
$type = 
"",
 
 2193     elgg_deprecated_notice(
'get_entities_from_relationship_and_meta() was deprecated by elgg_get_entities_from_relationship()!', 1.7);
 
 2197     $options[
'relationship'] = $relationship;
 
 2198     $options[
'relationship_guid'] = $relationship_guid;
 
 2199     $options[
'inverse_relationship'] = $inverse_relationship;
 
 2226         $options[
'site_guid'] = $site_guid;
 
 2265     if ($subject_guid) {
 
 2266         $options[
'subject_guid'] = $subject_guid;
 
 2270         $options[
'object_guid'] = $object_guid;
 
 2273     if ($subject_relationship) {
 
 2274         $options[
'relationship'] = $subject_relationship;
 
 2276         $options[
'relationship_guid'] = $subject_guid;
 
 2288         $options[
'action_type'] = $action_type;
 
 2295         $options[
'posted_time_lower'] = $posted_min;
 
 2299         $options[
'posted_time_upper'] = $posted_max;
 
 2330     $river_items = 
get_river_items($subject_guid, $object_guid, $subject_relationship,
 
 2338         'items' => $river_items,
 
 2339         'count' => count($river_items),
 
 2343         'list-class' => 
'elgg-list-river',
 
 2365         if (!is_array(
$type)) {
 
 2368             foreach (
$type as $k => $v) {
 
 2397     $activity_events = array();
 
 2398     $activity_views = array_merge(
elgg_view_tree(
'activity', 
'default'),
 
 2403     foreach ($activity_views as 
$view) {
 
 2404         $fragments = explode(
'/', 
$view);
 
 2405         $tmp = explode(
'/', 
$view, 2);
 
 2408         if ((isset($fragments[0])) && (($fragments[0] == 
'river') || ($fragments[0] == 
'activity'))
 
 2409             && (!in_array($tmp, $done))) {
 
 2411             if (isset($fragments[1])) {
 
 2413                 for (
$n = 1; 
$n < count($fragments); 
$n++) {
 
 2416                         case 1: 
$key = 
'type'; 
break;
 
 2417                         case 2: 
$key = 
'subtype'; 
break;
 
 2418                         case 3: 
$key = 
'event'; 
break;
 
 2426                     if (!in_array($f[
'type'], 
$type)) {
 
 2431                     if (!in_array($f[
'subtype'], 
$subtype)) {
 
 2437                     $activity_events[] = $f;
 
 2446     foreach ($activity_events as $details) {
 
 2448         if ($details[
'subtype'] == 
'default') {
 
 2449             $details[
'subtype'] = 
'';
 
 2452         if (($details[
'type']) && ($details[
'event'])) {
 
 2454                 $obj_query .= 
" or ";
 
 2458             if ($details[
'type'] != 
'relationship') {
 
 2462             $obj_query .= 
"( sl.object_type='{$details['type']}' 
 2463                 AND sl.object_subtype='{$details['subtype']}' 
 2464                 AND sl.event='{$details['event']}' $access )";
 
 2472         $user = 
" and sl.performed_by_guid in (" . implode(
',', 
$owner_guid) . 
")";
 
 2474         if ($owner_relationship) {
 
 2477                 'relationship' => $owner_relationship,
 
 2479                 'inverse_relationship' => FALSE,
 
 2485                 $friendsarray = array();
 
 2487                     $friendsarray[] = 
$friend->getGUID();
 
 2490                 $user = 
" and sl.performed_by_guid in (" . implode(
',', $friendsarray) . 
")";
 
 2495     $query = 
"SELECT sl.* FROM {$CONFIG->dbprefix}system_log sl 
 2496         WHERE 1 $user AND ($obj_query) 
 2497         ORDER BY sl.time_created desc limit $offset, $limit";
 
 2518     $result = $pam->authenticate($credentials);
 
 2538         Use ElggSite::getMembers()", 1.8);
 
 2560         Use ElggSite::listMembers()", 1.8);
 
 2564         'full_view' => $fullview,
 
 2589     $site_guid = (int)$site_guid;
 
 2590     $collection_guid = (int)$collection_guid;
 
 2606     $site_guid = (int)$site_guid;
 
 2607     $collection_guid = (int)$collection_guid;
 
 2625     $site_guid = (int)$site_guid;
 
 2632         'relationship' => 
'member_of_site',
 
 2633         'relationship_guid' => $site_guid,
 
 2634         'inverse_relationship' => TRUE,
 
 2635         'type' => 
'collection',
 
 2662 function get_tags($threshold = 1, 
$limit = 10, $metadata_name = 
"", $entity_type = 
"object",
 
 2663 $entity_subtype = 
"", 
$owner_guid = 
"", $site_guid = -1, $start_ts = 
"", $end_ts = 
"") {
 
 2667     if (is_array($metadata_name)) {
 
 2672     if ($metadata_name === 
'') {
 
 2675         $options[
'tag_names'] = array($metadata_name);
 
 2678     $options[
'threshold'] = $threshold;
 
 2683     if ($container_guid) {
 
 2684         $options[
'container_guids'] = $container_guid;
 
 2691     if ($entity_subtype) {
 
 2692         $options[
'subtype'] = $entity_subtype;
 
 2695     if ($site_guid != -1) {
 
 2696         $options[
'site_guids'] = $site_guid;
 
 2700         $options[
'created_time_upper'] = $end_ts;
 
 2704         $options[
'created_time_lower'] = $start_ts;
 
 2733 $entity_subtype = 
"", 
$owner_guid = 
"", $site_guid = -1, $start_ts = 
"", $end_ts = 
"") {
 
 2738         $entity_subtype, 
$owner_guid, $site_guid, $start_ts, $end_ts);
 
 2740     return elgg_view(
'output/tagcloud', array(
 
 2742         'type' => $entity_type,
 
 2743         'subtype' => $entity_subtype,
 
 2762 $offset = 0, $timelower = 0, $timeupper = 0) {
 
 2771         'created_time_lower' => $timelower,
 
 2772         'created_time_upper' => $timeupper
 
 2797         'created_time_lower' => $timelower,
 
 2798         'created_time_upper' => $timeupper
 
 2821 $fullview = 
true, $listtypetoggle = 
true, 
$pagination = 
true, $timelower = 0, $timeupper = 0) {
 
 2848     elgg_deprecated_notice(
"get_user_objects_by_metadata() was deprecated in favor of elgg_get_entities_from_metadata()", 1.8);
 
 2876         Plugins should register for the 'register, user' plugin hook", 1.8);
 
 2912     elgg_deprecated_notice(
"extend_elgg_settings_page has been deprecated. Extend one of the settings views instead", 1.8);
 
 2947     return elgg_view(
'page/components/image_block', array(
'image' => 
$icon, 
'body' => $info));
 
 2968     switch (strtolower(
$size)) {
 
 3008             $overrideurl = 
elgg_view(
"icon/{$type}/{$subtype}/{$size}", array(
'entity' => 
$entity));
 
 3009             if (!empty($overrideurl)) {
 
 3010                 return $overrideurl;
 
 3014         $overrideurl = 
elgg_view(
"icon/{$type}/default/{$size}", array(
'entity' => 
$entity));
 
 3015         if (!empty($overrideurl)) {
 
 3016             return $overrideurl;
 
 3019         $url = 
"_graphics/icons/default/$size.png";
 
 3098     elgg_deprecated_notice(
'find_plugin_usersettings() is deprecated by elgg_get_all_plugin_user_settings()', 1.8);
 
 3115     elgg_deprecated_notice(
'find_plugin_usersettings() is deprecated by elgg_get_all_plugin_user_settings()', 1.8);
 
 3130     elgg_deprecated_notice(
'clear_plugin_usersetting() is deprecated by elgg_unset_plugin_usersetting()', 1.8);
 
 3207     elgg_deprecated_notice(
'clear_all_plugin_settings() is deprecated by elgg_unset_all_plugin_setting()', 1.8);
 
 3233 $timeupper = 0, $entity_owner_guid = 0) {
 
 3246     if ($entity_subtype) {
 
 3247         $options[
'subtype'] = $entity_subtype;
 
 3265     if ($order_by == 
'desc') {
 
 3266         $options[
'order_by'] = 
'n_table.time_created desc';
 
 3270         $options[
'annotation_time_lower'] = $timelower;
 
 3274         $options[
'annotation_time_upper'] = $timeupper;
 
 3277     if ($entity_owner_guid) {
 
 3278         $options[
'owner_guid'] = $entity_owner_guid;
 
 3308         'order_by' => 
"n_table.time_created $asc" 
 3332 $timeupper = 0, $calculation = 
'') {
 
 3334     $options = array(
'annotation_calculation' => $calculation);
 
 3344     if ($entity_subtype) {
 
 3345         $options[
'subtype'] = $entity_subtype;
 
 3361         $options[
'annotation_time_lower'] = $timelower;
 
 3365         $options[
'annotation_time_upper'] = $timeupper;
 
 3390     elgg_deprecated_notice(
'count_annotations() is deprecated by elgg_get_annotations() and passing "count" => true', 1.8);
 
 3411     elgg_deprecated_notice(
'get_annotations_sum() is deprecated by elgg_get_annotations() and passing "annotation_calculation" => "sum"', 1.8);
 
 3433     elgg_deprecated_notice(
'get_annotations_max() is deprecated by elgg_get_annotations() and passing "annotation_calculation" => "max"', 1.8);
 
 3456     elgg_deprecated_notice(
'get_annotations_min() is deprecated by elgg_get_annotations() and passing "annotation_calculation" => "min"', 1.8);
 
 3480     elgg_deprecated_notice(
'get_annotations_avg() is deprecated by elgg_get_annotations() and passing "annotation_calculation" => "avg"', 1.8);
 
 3506 $timelower = 0, $timeupper = 0) {
 
 3507     elgg_deprecated_notice(
'get_annotations_calculate_x() is deprecated by elgg_get_annotations() and passing "annotation_calculation" => "calculation"', 1.8);
 
 3538 $asc = 
false, $fullview = 
true, $listtypetoggle = 
false, 
$pagination = 
true, $orderdir = 
'desc') {
 
 3540     $msg = 
'list_entities_from_annotation_count_by_metadata() is deprecated by elgg_list_entities_from_annotation_calculation().';
 
 3552     if ($entity_subtype) {
 
 3553         $options[
'subtypes'] = $entity_subtype;
 
 3559         $options[
'metadata_name'] = $mdname;
 
 3563         $options[
'metadata_value'] = $mdvalue;
 
 3576     $options[
'list_type_toggle'] = $listtypetoggle;
 
 3582     $options[
'order_by'] = 
"annotation_calculation $orderdir";
 
 3611     elgg_deprecated_notice(
"register_entity_url_handler() was deprecated by elgg_register_entity_url_handler()", 1.8);
 
 3631 function find_metadata($meta_name = 
"", $meta_value = 
"", $entity_type = 
"", $entity_subtype = 
"",
 
 3639         $options[
'annotation_name'] = $meta_name;
 
 3643         $options[
'annotation_value'] = $meta_value;
 
 3650     if ($entity_subtype) {
 
 3651         $options[
'subtype'] = $entity_subtype;
 
 3657     if ($order_by == 
'desc') {
 
 3658         $options[
'order_by'] = 
'n_table.time_created desc';
 
 3662         $options[
'site_guid'] = $site_guid;
 
 3686         'metadata_name' => $meta_name,
 
 3692     if ($md && count($md) == 1) {
 
 3803         'metadata_name' => 
$name,
 
 3934     elgg_deprecated_notice(
"unregister_page_handler() was deprecated by elgg_unregister_page_handler()", 1.8);
 
 3947     elgg_deprecated_notice(
"register_annotation_url_handler() was deprecated by elgg_register_annotation_url_handler()", 1.8);
 
 3964     elgg_deprecated_notice(
"register_extender_url_handler() was deprecated by elgg_register_extender_url_handler()", 1.8);
 
 4006     elgg_deprecated_notice(
"register_relationship_url_handler() was deprecated by elgg_register_relationship_url_handler()", 1.8);
 
 4023     elgg_deprecated_notice(
"elgg_view_register_simplecache() was deprecated by elgg_register_simplecache_view()", 1.8);
 
 4036     elgg_deprecated_notice(
"elgg_view_regenerate_simplecache() was deprecated by elgg_regenerate_simplecache()", 1.8);
 
 4048     elgg_deprecated_notice(
"elgg_view_enable_simplecache() was deprecated by elgg_enable_simplecache()", 1.8);
 
 4060     elgg_deprecated_notice(
"elgg_view_disable_simplecache() was deprecated by elgg_disable_simplecache()", 1.8);
 
 4104     $_PAM_HANDLERS_MSG = array();
 
 4106     $authenticated = 
false;
 
 4110         $importance = $v->importance;
 
 4116                 $_PAM_HANDLERS_MSG[$k] = 
"Authenticated!";
 
 4118                 $authenticated = 
true;
 
 4120                 $_PAM_HANDLERS_MSG[$k] = 
"Not Authenticated.";
 
 4123                 if ($importance == 
'required') {
 
 4127         } 
catch (Exception 
$e) {
 
 4128             $_PAM_HANDLERS_MSG[$k] = 
"$e";
 
 4131             if ($importance == 
'required') {
 
 4137     return $authenticated;
 
 4155         if (
$widget->getSubtype() == 
"widget") {
 
 4168             $ordertmp = array();
 
 4170                 'context' => 
$widget->context,
 
 4175                 foreach ($entities as 
$entity) {
 
 4176                     $entityorder = 
$entity->order;
 
 4177                     if ($entityorder < $order) {
 
 4178                         $ordertmp[$entityorder] = 
$entity;
 
 4180                     if ($entityorder >= $order) {
 
 4181                         $ordertmp[$entityorder + 10000] = 
$entity;
 
 4190             foreach ($ordertmp as $orderval => 
$entity) {
 
 4191                 $entity->order = $orderticker;
 
 4225         $widgetorder = array();
 
 4228             while (isset($widgetorder[$order])) {
 
 4231             $widgetorder[$order] = 
$widget;
 
 4234         ksort($widgetorder);
 
 4236         return $widgetorder;
 
 4265         if (isset($access_id)) {
 
 4266             $widget->access_id = $access_id;
 
 4302 $multiple = 
false, $positions = 
"side,main") {
 
 4379                     'guid', 
'owner_guid', 
'site_guid' 
 4392         $function = 
"save_{$handler}_widget";
 
 4393         if (is_callable($function)) {
 
 4419     $mainwidgets = explode(
'::', $panelstring1);
 
 4420     $sidewidgets = explode(
'::', $panelstring2);
 
 4421     $rightwidgets = explode(
'::', $panelstring3);
 
 4423     $handlers = array();
 
 4426     if (is_array($mainwidgets) && 
sizeof($mainwidgets) > 0) {
 
 4427         foreach ($mainwidgets as 
$widget) {
 
 4431             if (
"{$guid}" == 
"{$widget}") {
 
 4438     if (is_array($sidewidgets) && 
sizeof($sidewidgets) > 0) {
 
 4439         foreach ($sidewidgets as 
$widget) {
 
 4443             if (
"{$guid}" == 
"{$widget}") {
 
 4451     if (is_array($rightwidgets) && 
sizeof($rightwidgets) > 0) {
 
 4452         foreach ($rightwidgets as 
$widget) {
 
 4456             if (
"{$guid}" == 
"{$widget}") {
 
 4466     foreach (array(1, 2, 3) as 
$column) {
 
 4469             foreach ($dbwidgets as $dbwidget) {
 
 4470                 if (in_array($dbwidget->getGUID(), 
$guids[1])
 
 4471                 || in_array($dbwidget->getGUID(), 
$guids[2]) || in_array($dbwidget->getGUID(), 
$guids[3])) {
 
 4473                     if (in_array($dbwidget->getGUID(), 
$guids[1])) {
 
 4474                         $pos = array_search($dbwidget->getGUID(), 
$guids[1]);
 
 4476                     } 
else if (in_array($dbwidget->getGUID(), 
$guids[2])) {
 
 4477                         $pos = array_search($dbwidget->getGUID(), 
$guids[2]);
 
 4480                         $pos = array_search($dbwidget->getGUID(), 
$guids[3]);
 
 4483                     $pos = ($pos + 1) * 10;
 
 4484                     $dbwidget->column = $col;
 
 4485                     $dbwidget->order = $pos;
 
 4487                     $dbguid = $dbwidget->getGUID();
 
 4488                     if (!$dbwidget->delete()) {
 
 4493                         $cookie->value = NULL;
 
 4504                     $pos = (
$key + 1) * 10;
 
 4529     if (!isset(
$CONFIG->widgets)) {
 
 4530         $CONFIG->widgets = 
new stdClass;
 
 4533     if (!isset(
$CONFIG->widgets->contexts)) {
 
 4534         $CONFIG->widgets->contexts = array();
 
 4553     if (isset(
$CONFIG->widgets->contexts) && is_array(
$CONFIG->widgets->contexts)) {
 
 4586         return $entity->countComments();
 
 4665     $page = implode(
'/', $page);
 
 4668     $page = str_replace(
"..", 
"", $page);
 
 4671     if (is_dir($callpath)) {
 
 4673         $callpath .= 
"index.php";
 
 4674         if (file_exists($callpath)) {
 
 4675             if (include($callpath)) {
 
 4679     } 
else if (file_exists($callpath)) {
 
 4697     elgg_deprecated_notice(
'invalidate_cache_for_entity() is a private function and should not be used.', 1.8);
 
if(! $collection_name) $id
 
if(! $owner||!($owner instanceof ElggUser)||! $owner->canEdit()) $input
 
$label
Elgg profile plugin edit default profile action.
 
elgg_register_action($action, $filename="", $access='logged_in')
Registers an action.
 
if($guid==elgg_get_logged_in_user_guid()) $name
 
elgg_delete_annotations(array $options)
Deletes annotations based on $options.
 
elgg_list_annotations($options)
Returns a rendered list of annotations with pagination.
 
elgg_get_entities_from_annotation_calculation($options)
Get entities ordered by a mathematical calculation on annotation values.
 
elgg_get_annotation_from_id($id)
Get a specific annotation by its id.
 
elgg_get_annotations(array $options=array())
Returns annotations.
 
$user_guid
Avatar remove action.
 
elgg_enable_simplecache()
Enables the simple cache.
 
elgg_disable_simplecache()
Disables the simple cache.
 
elgg_register_simplecache_view($view_name)
Registers a view to simple cache.
 
elgg_get_plugins_path()
Get the plugin path for this installation.
 
get_config($name, $site_guid=0)
Gets a configuration value.
 
$guid
Removes an admin notice.
 
get_entities_from_metadata_multi($meta_array, $entity_type="", $entity_subtype="", $owner_guid=0, $limit=10, $offset=0, $order_by="", $site_guid=0, $count=false, $meta_array_operator='and')
Return entities from metadata.
 
add_to_register($register_name, $subregister_name, $subregister_value, $children_array=array())
Adds an entry in $CONFIG[$register_name][$subregister_name].
 
page_draw($title, $body, $sidebar="")
Returns a representation of a full 'page' (which might be an HTML page, RSS file, etc,...
 
elgg_view_disable_simplecache()
Disables the simple cache.
 
clear_plugin_usersetting($name, $user_guid=0, $plugin_id='')
Clears a user-specific plugin setting.
 
count_user_objects($user_guid, $subtype=ELGG_ENTITIES_ANY_VALUE, $timelower=0, $timeupper=0)
Counts the objects (optionally of a particular subtype) owned by a user.
 
remove_site_collection($site_guid, $collection_guid)
Remove a collection from a site.
 
get_objects_in_group($group_guid, $subtype="", $owner_guid=0, $site_guid=0, $order_by="", $limit=10, $offset=0, $count=FALSE)
Return an array of objects in a given container.
 
isloggedin()
Returns whether or not the user is currently logged in.
 
register_metadata_url_handler($function, $extender_name="all")
Register a metadata url handler.
 
save_widget_location(ElggObject $widget, $order, $column)
When given a widget entity and a new requested location, saves the new location and also provides a s...
 
remove_from_river_by_id($id)
Removes a single river entry.
 
list_site_members($site_guid, $limit=10, $fullview=true)
Display a list of site members.
 
page_owner()
Gets the guid of the entity that owns the current page.
 
elgg_view_regenerate_simplecache($viewtype=NULL)
Regenerates the simple cache.
 
reorder_widgets_from_panel($panelstring1, $panelstring2, $panelstring3, $context, $owner)
Reorders the widgets from a widget panel.
 
get_entities_from_private_setting_multi(array $name, $type="", $subtype="", $owner_guid=0, $order_by="", $limit=10, $offset=0, $count=false, $site_guid=0, $container_guid=null)
Get entities based on their private data by multiple keys.
 
get_plugin_setting($name, $plugin_id="")
Get setting for a plugin.
 
clear_annotations($guid, $name="")
Clear all the annotations for a given entity, assuming you have access to that metadata.
 
get_entities_from_relationships_and_meta($relationship, $relationship_guid, $inverse_relationship=false, $meta_name="", $meta_value="", $type="", $subtype="", $owner_guid=0, $limit=10, $offset=0, $count=false, $site_guid=0)
Gets the number of entities by a the number of entities related to them in a particular way also cons...
 
get_entities_by_relationship_count($relationship, $inverse_relationship=true, $type="", $subtype="", $owner_guid=0, $limit=10, $offset=0, $count=false, $site_guid=0)
Gets the number of entities by a the number of entities related to them in a particular way.
 
get_entities_from_metadata_groups_multi($group_guid, $meta_array, $entity_type="", $entity_subtype="", $owner_guid=0, $limit=10, $offset=0, $order_by="", $site_guid=0, $count=false)
As get_entities_from_metadata_groups() but with multiple entities.
 
load_plugin_manifest($plugin)
Load and parse a plugin manifest from a plugin XML file.
 
get_register($register_name)
If it exists, returns a particular register as an array.
 
remove_widget_type($handler)
Remove a widget type.
 
register_page_handler($handler, $function)
Registers a page handler for a particular identifier.
 
elgg_view_listing($icon, $info)
Wrapper function to display search listings.
 
get_installed_plugins($status='all')
Return an array of installed plugins.
 
set_plugin_setting($name, $value, $plugin_id=null)
Set a setting for a plugin.
 
add_submenu_item($label, $link, $group='default', $onclick=false, $selected=NULL)
Deprecated by elgg_register_menu_item().
 
unregister_plugin_hook($hook, $entity_type, $callback)
Unregister a function to a plugin hook for a particular entity type.
 
trigger_elgg_event($event, $object_type, $object=null)
Alias function for events, that triggers a particular kind of event.
 
cache_entity(ElggEntity $entity)
Cache an entity.
 
register_annotation_url_handler($function, $extender_name)
Register an annotation url handler.
 
unregister_elgg_event_handler($event, $object_type, $callback)
Unregisters a function to a particular kind of event.
 
remove_from_river_by_annotation($annotation_id)
Removes all items relating to a particular annotation being acted upon from the river.
 
add_menu($menu_name, $menu_url, $menu_children=array(), $context="")
Adds an item to the site-wide menu.
 
elgg_view_river_items($subject_guid=0, $object_guid=0, $subject_relationship='', $type='', $subtype='', $action_type='', $limit=20, $posted_min=0, $posted_max=0, $pagination=true)
Returns a human-readable version of the river.
 
elgg_view_register_simplecache($viewname)
Registers a view to be simply cached.
 
register_action($action, $public=false, $filename="", $admin_only=false)
Registers a particular action in memory.
 
list_annotations($entity_guid, $name="", $limit=25, $asc=true)
Returns a human-readable list of annotations on a particular entity.
 
list_entities_from_annotation_count($entity_type="", $entity_subtype="", $name="", $limit=10, $owner_guid=0, $group_guid=0, $asc=false, $fullview=true, $listtypetoggle=false, $pagination=true, $orderdir='desc')
Lists entities by the totals of a particular kind of annotation.
 
get_site_members($site_guid, $limit=10, $offset=0)
Get the members of a site.
 
get_plugin_name($mainfilename=false)
Get the name of the most recent plugin to be called in the call stack (or the plugin that owns the cu...
 
display_widget(ElggObject $widget)
Displays a particular widget.
 
get_annotation($annotation_id)
Get a specific annotation.
 
remove_menu($menu_name)
Removes an item from the menu register.
 
extend_elgg_admin_page($new_admin_view, $view='admin/main', $priority=500)
Register an admin page with the admin panel.
 
delete_annotation($id)
Delete a given annotation.
 
request_user_validation($user_guid)
Trigger an event requesting that a user guid be validated somehow - either by email address or some o...
 
register_relationship_url_handler($function_name, $relationship_type="all")
Sets the URL handler for a particular relationship type.
 
remove_blacklist($input)
Returns true if the word in $input is considered significant.
 
load_plugins()
Loads plugins.
 
list_entities_location($location, $type="", $subtype="", $owner_guid=0, $limit=10, $fullview=true, $listtypetoggle=false, $navigation=true)
List entities in a given location.
 
use_widgets($context)
Register a particular context for use with widgets.
 
get_metadata($id)
Get a specific metadata object.
 
register_extender_url_handler($function, $type="all", $name="all")
Sets the URL handler for a particular extender type and name.
 
set_view_location($view, $location, $viewtype='')
Set an alternative base location for a view (as opposed to the default of $CONFIG->viewpath)
 
add_page_owner_handler($functionname)
Registers a page owner handler function.
 
elgg_get_entity_site_where_sql($table, $site_guids)
Returns SQL where clause for site entities.
 
clear_annotations_by_owner($owner_guid)
Clear all annotations belonging to a given owner_guid.
 
save_widget_info($widget_guid, $params)
Saves a widget's settings (by passing an array of (name => value) pairs to save_{$handler}_widget)
 
get_entities_in_area($lat, $long, $radius, $type="", $subtype="", $owner_guid=0, $order_by="", $limit=10, $offset=0, $count=false, $site_guid=0, $container_guid=NULL)
Return entities within a given geographic area.
 
get_annotations_max($entity_guid, $entity_type="", $entity_subtype="", $name="", $value="", $value_type="", $owner_guid=0)
Return the max of a given integer annotation.
 
add_site_collection($site_guid, $collection_guid)
Add a collection to a site.
 
get_metadata_byname($entity_guid, $meta_name)
Get metadata objects by name.
 
remove_from_register($register_name, $subregister_name)
Removes a register entry from $CONFIG[register_name][subregister_name].
 
find_metadata($meta_name="", $meta_value="", $entity_type="", $entity_subtype="", $limit=10, $offset=0, $order_by="", $site_guid=0)
Get the metadata where the entities they are referring to match a given criteria.
 
count_annotations($entity_guid=0, $entity_type="", $entity_subtype="", $name="", $value="", $value_type="", $owner_guid=0, $timelower=0, $timeupper=0)
Count the number of annotations based on search parameters.
 
list_entities_from_metadata_multi($meta_array, $entity_type="", $entity_subtype="", $owner_guid=0, $limit=10, $fullview=true, $listtypetoggle=true, $pagination=true)
Returns a viewable list of entities based on the given search criteria.
 
get_plugin_list()
Returns a list of plugins to load, in the order that they should be loaded.
 
using_widgets()
Determines whether or not the current context is using widgets.
 
default_page_handler($page, $handler)
A default page handler Tries to locate a suitable file to include.
 
get_annotations_calculate_x($sum="avg", $entity_guid, $entity_type="", $entity_subtype="", $name="", $value="", $value_type="", $owner_guid=0, $timelower=0, $timeupper=0)
Perform a mathmatical calculation on integer annotations.
 
find_plugin_settings($plugin_id=null)
Shorthand function for finding the plugin settings.
 
remove_submenu_item($label, $group='a')
Remove an item from submenu by label.
 
get_entities_from_metadata_groups($group_guid, $meta_name, $meta_value="", $entity_type="", $entity_subtype="", $owner_guid=0, $limit=10, $offset=0, $order_by="", $site_guid=0, $count=false)
Get all the entities from metadata from a group.
 
set_context($context)
Sets the functional context of a page.
 
call_gatekeeper($function, $file="")
Checks if code is being called from a certain function.
 
invalidate_cache_for_entity($guid)
Invalidate this class's entry in the cache.
 
clear_metadata_by_owner($owner_guid)
Clear all metadata belonging to a given owner_guid.
 
get_metadata_for_entity($entity_guid)
Return all the metadata for a given GUID.
 
remove_from_river_by_object($object_guid)
Removes all items relating to a particular entity being acted upon from the river.
 
extend_elgg_settings_page($new_settings_view, $view='usersettings/main', $priority=500)
Register a user settings page with the admin panel.
 
filter_string($string)
Filters a string into an array of significant words.
 
add_widget_type($handler, $name, $description, $context="all", $multiple=false, $positions="side,main")
Define a new widget type.
 
set_page_owner($entitytoset=-1)
Set a page owner entity.
 
get_loggedin_user()
Return the current logged in user, or NULL if no user is logged in.
 
disable_plugin($plugin, $site_guid=0)
Disable a plugin for a site (default current site)
 
get_widgets($user_guid, $context, $column)
Get widgets for a particular context and column, in order of display.
 
retrieve_cached_entity($guid)
Retrieve a entity from the cache.
 
is_plugin_enabled($plugin, $site_guid=0)
Return whether a plugin is enabled or not.
 
list_entities_by_relationship_count($relationship, $inverse_relationship=true, $type="", $subtype="", $owner_guid=0, $limit=10, $fullview=true, $listtypetoggle=false, $pagination=true)
Displays a human-readable list of entities.
 
get_site_collections($site_guid, $subtype="", $limit=10, $offset=0)
Get the collections belonging to a site.
 
get_context()
Returns the functional context of a page.
 
register_plugin_hook($hook, $type, $callback, $priority=500)
Register a function to a plugin hook for a particular entity type, with a given priority.
 
delete_metadata($id)
Delete a piece of metadata, where the current user has access.
 
get_river_items($subject_guid=0, $object_guid=0, $subject_relationship='', $type='', $subtype='', $action_type='', $limit=20, $offset=0, $posted_min=0, $posted_max=0)
Retrieves items from the river.
 
remove_metadata($guid, $name, $value="")
Removes metadata on an entity with a particular name, optionally with a given value.
 
get_activity_stream_data($limit=10, $offset=0, $type="", $subtype="", $owner_guid="", $owner_relationship="")
Construct and execute the query required for the activity stream.
 
list_entities_from_metadata($meta_name, $meta_value="", $entity_type=ELGG_ENTITIES_ANY_VALUE, $entity_subtype=ELGG_ENTITIES_ANY_VALUE, $owner_guid=0, $limit=10, $fullview=true, $listtypetoggle=true, $pagination=true, $case_sensitive=true)
Return a list of entities suitable for display based on the given search criteria.
 
clear_all_plugin_settings($plugin_id="")
Unsets all plugin settings for a plugin.
 
get_plugin_usersetting($name, $user_guid=0, $plugin_id="")
Get a user specific setting for a plugin.
 
get_submenu()
Use elgg_view_menu().
 
register_elgg_event_handler($event, $object_type, $callback, $priority=500)
Alias function for events, that registers a function to a particular kind of event.
 
callpath_gatekeeper($path, $include_subdirs=true, $strict_mode=false)
This function checks to see if it is being called at somepoint by a function defined somewhere on a g...
 
widget_type_exists($handler)
Determines whether or not widgets with the specified handler have been defined.
 
display_tagcloud($threshold=1, $limit=10, $metadata_name="", $entity_type="object", $entity_subtype="", $owner_guid="", $site_guid=-1, $start_ts="", $end_ts="")
Loads and displays a tagcloud given particular criteria.
 
elgg_get_entity_owner_where_sql($table, $owner_guids)
Returns SQL where clause for owner and containers.
 
register_entity_type($type, $subtype=null)
Registers and entity type and subtype to return in search and other places.
 
pam_authenticate($credentials=NULL, $policy="user")
Attempt to authenticate.
 
friendly_title($title)
When given a title, returns a version suitable for inclusion in a URL.
 
get_entities_from_annotations_calculate_x($sum="sum", $entity_type="", $entity_subtype="", $name="", $mdname='', $mdvalue='', $owner_guid=0, $limit=10, $offset=0, $orderdir='desc', $count=false)
Get entities ordered by a mathematical calculation.
 
check_plugin_compatibility($manifest_elgg_version_string)
This function checks a plugin manifest 'elgg_version' value against the current install returning TRU...
 
remove_from_river_by_subject($subject_guid)
Removes all items relating to a particular acting entity from the river.
 
list_entities_from_access_id($access_id, $entity_type="", $entity_subtype="", $owner_guid=0, $limit=10, $fullview=true, $listtypetoggle=true, $pagination=true)
Lists entities from an access collection.
 
get_annotations($entity_guid=0, $entity_type="", $entity_subtype="", $name="", $value="", $owner_guid=0, $limit=10, $offset=0, $order_by="asc", $timelower=0, $timeupper=0, $entity_owner_guid=0)
Get a list of annotations for a given object/user/annotation type.
 
get_entity_icon_url(ElggEntity $entity, $size='medium')
Return the icon URL for an entity.
 
friendly_time($time)
Displays a UNIX timestamp in a friendly way (eg "less than a minute ago")
 
elgg_deprecated_annotation_calculation($entity_guid=0, $entity_type="", $entity_subtype="", $name="", $value="", $value_type="", $owner_guid=0, $timelower=0, $timeupper=0, $calculation='')
Helper function to deprecate annotation calculation functions.
 
elgg_view_enable_simplecache()
Enables the simple cache.
 
trigger_plugin_hook($hook, $type, $params=null, $returnvalue=null)
Triggers a plugin hook, with various parameters as an array.
 
get_annotations_avg($entity_guid, $entity_type="", $entity_subtype="", $name="", $value="", $value_type="", $owner_guid=0)
Return the average of a given integer annotation.
 
list_user_objects($user_guid, $subtype=ELGG_ENTITIES_ANY_VALUE, $limit=10, $fullview=true, $listtypetoggle=true, $pagination=true, $timelower=0, $timeupper=0)
Displays a list of user objects of a particular subtype, with navigation.
 
events($event="", $object_type="", $function="", $priority=500, $call=false, $object=null)
Deprecated events core function.
 
set_user_validation_status($user_guid, $status, $method='')
Set the validation status for a user.
 
add_widget($entity_guid, $handler, $context, $order=0, $column=1, $access_id=null)
Add a new widget instance.
 
elgg_get_entity_container_where_sql($table, $container_guids)
Returns SQL where clause for containers.
 
page_owner_entity()
Gets the owner entity for the current page.
 
get_entities_from_private_setting($name="", $value="", $type="", $subtype="", $owner_guid=0, $order_by="", $limit=10, $offset=0, $count=false, $site_guid=0, $container_guid=null)
Get entities based on their private data.
 
isadminloggedin()
Returns whether or not the user is currently logged in and that they are an admin user.
 
regenerate_plugin_list($pluginorder=FALSE)
Regenerates the list of known plugins and saves it to the current site.
 
get_user_objects($user_guid, $subtype=ELGG_ENTITIES_ANY_VALUE, $limit=10, $offset=0, $timelower=0, $timeupper=0)
Obtains a list of objects owned by a user.
 
get_loggedin_userid()
Return the current logged in user by id.
 
list_entities_from_relationship($relationship, $relationship_guid, $inverse_relationship=false, $type=ELGG_ENTITIES_ANY_VALUE, $subtype=ELGG_ENTITIES_ANY_VALUE, $owner_guid=0, $limit=10, $fullview=true, $listtypetoggle=false, $pagination=true, $order_by='')
Returns a viewable list of entities by relationship.
 
unregister_page_handler($handler)
Unregister a page handler for an identifier.
 
elgg_count_comments($entity)
Count the number of comments attached to an entity.
 
clear_metadata($guid)
Clear all the metadata for a given entity, assuming you have access to that entity.
 
get_annotations_min($entity_guid, $entity_type="", $entity_subtype="", $name="", $value="", $value_type="", $owner_guid=0)
Return the minumum of a given integer annotation.
 
get_entities_from_annotation_count($entity_type="", $entity_subtype="", $name="", $mdname='', $mdvalue='', $owner_guid=0, $limit=10, $offset=0, $orderdir='desc', $count=false)
Returns entities ordered by the sum of an annotation.
 
list_entities_groups($subtype="", $owner_guid=0, $container_guid=0, $limit=10, $fullview=true, $listtypetoggle=true, $pagination=true)
Lists entities that belong to a group.
 
authenticate($username, $password)
Perform standard authentication with a given username and password.
 
enable_plugin($plugin, $site_guid=null)
Enable a plugin for a site (default current site)
 
register_entity_url_handler($function_name, $entity_type="all", $entity_subtype="all")
Sets the URL handler for a particular entity type and subtype.
 
set_plugin_usersetting($name, $value, $user_guid=0, $plugin_id="")
Set a user specific setting for a plugin.
 
list_entities_from_annotation_count_by_metadata($entity_type="", $entity_subtype="", $name="", $mdname='', $mdvalue='', $limit=10, $owner_guid=0, $group_guid=0, $asc=false, $fullview=true, $listtypetoggle=false, $pagination=true, $orderdir='desc')
Lists entities by the totals of a particular kind of annotation AND the value of a piece of metadata.
 
get_widget_types()
Returns an array of stdClass objects representing the defined widget types.
 
list_entities_in_area($lat, $long, $radius, $type="", $subtype="", $owner_guid=0, $limit=10, $fullview=true, $listtypetoggle=false, $navigation=true)
List items within a given geographic area.
 
get_tags($threshold=1, $limit=10, $metadata_name="", $entity_type="object", $entity_subtype="", $owner_guid="", $site_guid=-1, $start_ts="", $end_ts="")
Get an array of tags with weights for use with the output/tagcloud view.
 
clear_plugin_setting($name, $plugin_id="")
Clear a plugin setting.
 
find_plugin_usersettings($plugin_id=null, $user_guid=0)
Find the plugin settings for a user.
 
get_annotations_sum($entity_guid, $entity_type="", $entity_subtype="", $name="", $value="", $value_type="", $owner_guid=0)
Return the sum of a given integer annotation.
 
get_user_objects_by_metadata($user_guid, $subtype="", $metadata=array(), $limit=0, $offset=0)
Get user objects by an array of metadata.
 
elgg_register_annotation_url_handler($extender_name="all", $function_name)
Register an annotation url handler.
 
elgg_register_entity_url_handler($entity_type, $entity_subtype, $function_name)
Sets the URL handler for a particular entity type and subtype.
 
elgg_register_extender_url_handler($extender_type, $extender_name, $function_name)
Sets the URL handler for a particular extender type and name.
 
elgg_list_entities_from_location(array $options=array())
Returns a viewable list of entities from location.
 
get_metastring_id($string, $case_sensitive=TRUE)
Return the meta string id for a given tag, or false.
 
elgg_register_metadata_url_handler($extender_name, $function)
Register a metadata url handler.
 
elgg_get_calling_plugin_id($mainfilename=false)
Get the name of the most recent plugin to be called in the call stack (or the plugin that owns the cu...
 
elgg_regenerate_simplecache($viewtype=NULL)
Regenerates the simple cache.
 
elgg_register_relationship_url_handler($relationship_type, $function_name)
Sets the URL handler for a particular relationship type.
 
elgg_get_entities_from_location(array $options=array())
Return entities within a given geographic area.
 
elgg_view_tree($view_root, $viewtype="")
Returns all views below a partial view.
 
const ELGG_ENTITIES_ANY_VALUE
 
register_error($error)
Display an error on next page load.
 
elgg_trigger_event($event, $object_type, $object=null)
Trigger an Elgg Event and attempt to run all handler callbacks registered to that event,...
 
sanitise_filepath($path, $append_slash=true)
Sanitise file paths ensuring that they begin and end with slashes etc.
 
elgg_register_plugin_hook_handler($hook, $type, $callback, $priority=500)
Register a callback as a plugin hook handler.
 
system_message($message)
Display a system message on next page load.
 
elgg_get_version($human_readable=false)
Get the current Elgg version information.
 
elgg_unregister_plugin_hook_handler($hook, $entity_type, $callback)
Unregister a callback as a plugin hook.
 
elgg_unregister_event_handler($event, $object_type, $callback)
Unregisters a callback for an event.
 
elgg_register_event_handler($event, $object_type, $callback, $priority=500)
Register a callback as an Elgg event handler.
 
elgg_trigger_plugin_hook($hook, $type, $params=null, $returnvalue=null)
Trigger a Plugin Hook and run all handler callbacks registered to that hook:type.
 
elgg_deprecated_notice($msg, $dep_version, $backtrace_level=1)
Sends a notice about deprecated use of a function, view, etc.
 
get_default_access(ElggUser $user=null)
Gets the default access permission.
 
elgg_list_entities_from_access_id(array $options=array())
Lists entities from an access collection.
 
_elgg_get_access_where_sql(array $options=array())
Returns the SQL where clause for enforcing read access to data.
 
sanitise_string($string)
Wrapper function for alternate English spelling (.
 
get_data_row($query, $callback="")
Retrieve a single row from the database.
 
get_data($query, $callback="")
Retrieve rows from the database.
 
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
 
elgg_register_menu_item($menu_name, $menu_item)
Register an item for an Elgg menu.
 
elgg_unregister_menu_item($menu_name, $item_name)
Remove an item from a menu.
 
elgg_get_plugin_from_id($plugin_id)
Returns an ElggPlugin object with the path $path.
 
elgg_unset_plugin_setting($name, $plugin_id=null)
Unsets a plugin setting.
 
elgg_get_plugin_user_setting($name, $user_guid=0, $plugin_id=null)
Get a user specific setting for a plugin.
 
elgg_is_active_plugin($plugin_id, $site_guid=null)
Returns if a plugin is active for a current site.
 
elgg_get_plugin_setting($name, $plugin_id=null, $default=null)
Get setting for a plugin.
 
_elgg_set_plugin_priorities(array $order)
Reorder plugins to an order specified by the array.
 
elgg_set_plugin_user_setting($name, $value, $user_guid=0, $plugin_id=null)
Set a user specific setting for a plugin.
 
elgg_unset_plugin_user_setting($name, $user_guid=0, $plugin_id=null)
Unsets a user-specific plugin setting.
 
elgg_get_plugins($status='active', $site_guid=null)
Returns an ordered list of plugins.
 
_elgg_generate_plugin_entities()
Discovers plugins in the plugins_path setting and creates ElggPlugin entities for them if they don't ...
 
elgg_unset_all_plugin_settings($plugin_id=null)
Unsets all plugin settings for a plugin.
 
elgg_get_all_plugin_user_settings($user_guid=0, $plugin_id=null, $return_obj=false)
Returns an array of all plugin user settings for a user.
 
elgg_get_calling_plugin_entity()
Returns the ElggPlugin entity of the last plugin called.
 
elgg_set_plugin_setting($name, $value, $plugin_id=null)
Set a setting for a plugin.
 
_elgg_load_plugins()
Loads all active plugins in the order specified in the tool admin panel.
 
elgg_get_river(array $options=array())
Get river items.
 
elgg_delete_river(array $options=array())
Delete river items.
 
get_entity($guid)
Loads and returns an entity object from a guid.
 
_elgg_invalidate_cache_for_entity($guid)
Invalidate this class's entry in the cache.
 
_elgg_get_guid_based_where_sql($column, $guids)
Returns SQL where clause for owner and containers.
 
_elgg_cache_entity(ElggEntity $entity)
Cache an entity.
 
get_subtype_id($type, $subtype)
Return the id for a given subtype.
 
_elgg_retrieve_cached_entity($guid)
Retrieve a entity from the cache.
 
elgg_register_entity_type($type, $subtype=null)
Registers an entity type and subtype as a public-facing entity that should be shown in search and by ...
 
elgg_get_entities(array $options=array())
Returns an array of entities with optional filtering.
 
elgg_get_friendly_title($title)
When given a title, returns a version suitable for inclusion in a URL.
 
elgg_register_page_handler($identifier, $function)
Registers a page handler for a particular identifier.
 
elgg_unregister_page_handler($identifier)
Unregister a page handler for an identifier.
 
elgg_get_page_owner_entity()
Gets the owner entity for the current page.
 
elgg_get_context()
Get the current context.
 
elgg_set_page_owner_guid($guid)
Set the guid of the entity that owns this page.
 
elgg_get_page_owner_guid($guid=0)
Gets the guid of the entity that owns the current page.
 
elgg_set_context($context)
Sets the page context.
 
if($screenshots) $description
 
elgg_get_entities_from_private_settings(array $options=array())
Returns entities based upon private settings.
 
$add
Admin area: edit default profile fields.
 
elgg_list_entities_from_relationship(array $options=array())
Returns a viewable list of entities by relationship.
 
elgg_list_entities_from_relationship_count($options)
Returns a list of entities by relationship count.
 
elgg_get_entities_from_relationship_count(array $options=array())
Gets the number of entities by a the number of entities related to them in a particular way.
 
elgg_get_entities_from_relationship($options)
Return entities matching a given query joining against a relationship.
 
add_entity_relationship($guid_one, $relationship, $guid_two)
Create a relationship between two entities.
 
remove_entity_relationship($guid_one, $relationship, $guid_two)
Delete a relationship between two entities.
 
elgg_is_admin_logged_in()
Returns whether or not the viewer is currently logged in and an admin user.
 
elgg_get_logged_in_user_guid()
Return the current logged in user by guid.
 
elgg_get_logged_in_user_entity()
Return the current logged in user, or null if no user is logged in.
 
elgg_set_cookie(ElggCookie $cookie)
Set a cookie, but allow plugins to customize it first.
 
elgg_is_logged_in()
Returns whether or not the user is currently logged in.
 
if(file_exists($welcome)) $vars
 
elgg_set_user_validation_status($user_guid, $status, $method='')
Set the validation status for a user.
 
get_user_by_username($username)
Get user by username.
 
elgg_view_friendly_time($time)
Displays a UNIX timestamp in a friendly way.
 
elgg_get_viewtype()
Return the current view type.
 
elgg_view_entity(ElggEntity $entity, $vars=array(), $bypass=false, $debug=false)
Returns a string of a rendered entity.
 
elgg_extend_view($view, $view_extension, $priority=501, $viewtype='')
Extends a view with another view.
 
elgg_set_view_location($view, $location, $viewtype='')
Set an alternative base location for a view.
 
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.
 
elgg_view_entity_list($entities, $vars=array(), $offset=0, $limit=10, $full_view=true, $list_type_toggle=true, $pagination=true)
Returns a rendered list of entities with pagination.
 
elgg_view_menu($menu_name, array $vars=array())
Render a menu.