Elgg  Version 1.11
deprecated-1.7.php
Go to the documentation of this file.
1 <?php
19 function get_entities_from_access_id($collection_id, $entity_type = "", $entity_subtype = "",
20  $owner_guid = 0, $limit = 10, $offset = 0, $order_by = "", $site_guid = 0, $count = false) {
21  // log deprecated warning
22  elgg_deprecated_notice('get_entities_from_access_id() was deprecated by elgg_get_entities()', 1.7);
23 
24  if (!$collection_id) {
25  return FALSE;
26  }
27 
28  // build the options using given parameters
29  $options = array();
30  $options['limit'] = $limit;
31  $options['offset'] = $offset;
32  $options['count'] = $count;
33 
34  if ($entity_type) {
35  $options['type'] = sanitise_string($entity_type);
36  }
37 
38  if ($entity_subtype) {
39  $options['subtype'] = $entity_subtype;
40  }
41 
42  if ($site_guid) {
43  $options['site_guid'] = $site_guid;
44  }
45 
46  if ($order_by) {
47  $options['order_by'] = sanitise_string("e.time_created, $order_by");
48  }
49 
50  if ($owner_guid) {
51  if (is_array($owner_guid)) {
52  $options['owner_guids'] = $owner_guid;
53  } else {
54  $options['owner_guid'] = $owner_guid;
55  }
56  }
57 
58  if ($site_guid) {
59  $options['site_guid'] = $site_guid;
60  }
61 
62  $options['access_id'] = $collection_id;
63 
65 }
66 
70 function get_entities_from_access_collection($collection_id, $entity_type = "", $entity_subtype = "",
71  $owner_guid = 0, $limit = 10, $offset = 0, $order_by = "", $site_guid = 0, $count = false) {
72 
73  elgg_deprecated_notice('get_entities_from_access_collection() was deprecated by elgg_get_entities()', 1.7);
74 
75  return get_entities_from_access_id($collection_id, $entity_type, $entity_subtype,
76  $owner_guid, $limit, $offset, $order_by, $site_guid, $count);
77 }
78 
101 function get_entities_from_annotations($entity_type = "", $entity_subtype = "", $name = "",
102 $value = "", $owner_guid = 0, $group_guid = 0, $limit = 10, $offset = 0, $order_by = "asc",
103 $count = false, $timelower = 0, $timeupper = 0) {
104  $msg = 'get_entities_from_annotations() is deprecated by elgg_get_entities_from_annotations().';
105  elgg_deprecated_notice($msg, 1.7);
106 
107  $options = array();
108 
109  if ($entity_type) {
110  $options['types'] = $entity_type;
111  }
112 
113  if ($entity_subtype) {
114  $options['subtypes'] = $entity_subtype;
115  }
116 
117  $options['annotation_names'] = $name;
118 
119  if ($value) {
120  $options['annotation_values'] = $value;
121  }
122 
123  if ($owner_guid) {
124  if (is_array($owner_guid)) {
125  $options['annotation_owner_guids'] = $owner_guid;
126  } else {
127  $options['annotation_owner_guid'] = $owner_guid;
128  }
129  }
130 
131  if ($group_guid) {
132  $options['container_guid'] = $group_guid;
133  }
134 
135  if ($limit) {
136  $options['limit'] = $limit;
137  }
138 
139  if ($offset) {
140  $options['offset'] = $offset;
141  }
142 
143  if ($order_by) {
144  $options['order_by'] = "maxtime $order_by";
145  }
146 
147  if ($count) {
148  $options['count'] = $count;
149  }
150 
151  if ($timelower) {
152  $options['annotation_created_time_lower'] = $timelower;
153  }
154 
155  if ($timeupper) {
156  $options['annotation_created_time_upper'] = $timeupper;
157  }
158 
160 }
161 
181 function list_entities_from_annotations($entity_type = "", $entity_subtype = "", $name = "",
182 $value = "", $limit = 10, $owner_guid = 0, $group_guid = 0, $asc = false, $fullview = true,
183 $listtypetoggle = false) {
184 
185  $msg = 'list_entities_from_annotations is deprecated by elgg_list_entities_from_annotations';
186  elgg_deprecated_notice($msg, 1.8);
187 
188  $options = array();
189 
190  if ($entity_type) {
191  $options['types'] = $entity_type;
192  }
193 
194  if ($entity_subtype) {
195  $options['subtypes'] = $entity_subtype;
196  }
197 
198  if ($name) {
199  $options['annotation_names'] = $name;
200  }
201 
202  if ($value) {
203  $options['annotation_values'] = $value;
204  }
205 
206  if ($limit) {
207  $options['limit'] = $limit;
208  }
209 
210  if ($owner_guid) {
211  $options['annotation_owner_guid'] = $owner_guid;
212  }
213 
214  if ($group_guid) {
215  $options['container_guid'] = $group_guid;
216  }
217 
218  if ($asc) {
219  $options['order_by'] = 'maxtime desc';
220  }
221 
222  if ($offset = sanitise_int(get_input('offset', null))) {
223  $options['offset'] = $offset;
224  }
225 
226  $options['full_view'] = $fullview;
227  $options['list_type_toggle'] = $listtypetoggle;
228  $options['pagination'] = true;
229 
231 }
232 
244 function get_library_files($directory, $exceptions = array(), $list = array()) {
245  elgg_deprecated_notice('get_library_files() deprecated by elgg_get_file_list()', 1.7);
246  return elgg_get_file_list($directory, $exceptions, $list, array('.php'));
247 }
248 
259  elgg_deprecated_notice('elgg_validate_action_url() deprecated by elgg_add_action_tokens_to_url().',
260  1.7);
261 
263 }
264 
271 function test_ip() {
272  elgg_deprecated_notice('test_ip() was removed because of licensing issues.', 1.7);
273 
274  return 0;
275 }
276 
283 function is_ip_in_array() {
284  elgg_deprecated_notice('is_ip_in_array() was removed because of licensing issues.', 1.7);
285 
286  return false;
287 }
288 
308 function get_entities($type = "", $subtype = "", $owner_guid = 0, $order_by = "", $limit = 10,
309 $offset = 0, $count = false, $site_guid = 0, $container_guid = null, $timelower = 0,
310 $timeupper = 0) {
311 
312  elgg_deprecated_notice('get_entities() was deprecated by elgg_get_entities().', 1.7);
313 
314  // rewrite owner_guid to container_guid to emulate old functionality
315  if ($owner_guid != "") {
316  if (is_null($container_guid)) {
318  $owner_guid = NULL;
319  }
320  }
321 
322  $options = array();
323  if ($type) {
324  if (is_array($type)) {
325  $options['types'] = $type;
326  } else {
327  $options['type'] = $type;
328  }
329  }
330 
331  if ($subtype) {
332  if (is_array($subtype)) {
333  $options['subtypes'] = $subtype;
334  } else {
335  $options['subtype'] = $subtype;
336  }
337  }
338 
339  if ($owner_guid) {
340  if (is_array($owner_guid)) {
341  $options['owner_guids'] = $owner_guid;
342  } else {
343  $options['owner_guid'] = $owner_guid;
344  }
345  }
346 
347  if ($order_by) {
348  $options['order_by'] = $order_by;
349  }
350 
351  // need to pass 0 for all option
352  $options['limit'] = $limit;
353 
354  if ($offset) {
355  $options['offset'] = $offset;
356  }
357 
358  if ($count) {
359  $options['count'] = $count;
360  }
361 
362  if ($site_guid) {
363  $options['site_guids'] = $site_guid;
364  }
365 
366  if ($container_guid) {
367  $options['container_guids'] = $container_guid;
368  }
369 
370  if ($timeupper) {
371  $options['created_time_upper'] = $timeupper;
372  }
373 
374  if ($timelower) {
375  $options['created_time_lower'] = $timelower;
376  }
377 
379  return $r;
380 }
381 
396 function delete_entities($type = "", $subtype = "", $owner_guid = 0) {
397  elgg_deprecated_notice('delete_entities() was deprecated because no one should use it.', 1.7);
398  return false;
399 }
400 
413 function list_registered_entities($owner_guid = 0, $limit = 10, $fullview = true,
414 $listtypetoggle = false, $allowedtypes = true) {
415 
416  elgg_deprecated_notice('list_registered_entities() was deprecated by elgg_list_registered_entities().', 1.7);
417 
418  $options = array();
419 
420  // don't want to send anything if not being used.
421  if ($owner_guid) {
422  $options['owner_guid'] = $owner_guid;
423  }
424 
425  if ($limit) {
426  $options['limit'] = $limit;
427  }
428 
429  if ($allowedtypes) {
430  $options['allowed_types'] = $allowedtypes;
431  }
432 
433  // need to send because might be BOOL
434  $options['full_view'] = $fullview;
435  $options['list_type_toggle'] = $listtypetoggle;
436 
437  $options['offset'] = get_input('offset', 0);
438 
440 }
441 
457 function list_entities($type= "", $subtype = "", $owner_guid = 0, $limit = 10, $fullview = true,
458 $listtypetoggle = false, $pagination = true) {
459 
460  elgg_deprecated_notice('list_entities() was deprecated by elgg_list_entities()!', 1.7);
461 
462  $options = array();
463 
464  // rewrite owner_guid to container_guid to emulate old functionality
465  if ($owner_guid) {
466  $options['container_guids'] = $owner_guid;
467  }
468 
469  if ($type) {
470  $options['types'] = $type;
471  }
472 
473  if ($subtype) {
474  $options['subtypes'] = $subtype;
475  }
476 
477  if ($limit) {
478  $options['limit'] = $limit;
479  }
480 
481  if ($offset = sanitise_int(get_input('offset', null))) {
482  $options['offset'] = $offset;
483  }
484 
485  $options['full_view'] = $fullview;
486  $options['list_type_toggle'] = $listtypetoggle;
487  $options['pagination'] = $pagination;
488 
490 }
491 
504 function search_for_group($criteria, $limit = 10, $offset = 0, $order_by = "", $count = false) {
505  elgg_deprecated_notice('search_for_group() was deprecated by new search plugin.', 1.7);
506  global $CONFIG;
507 
508  $criteria = sanitise_string($criteria);
509  $limit = (int)$limit;
510  $offset = (int)$offset;
511  $order_by = sanitise_string($order_by);
512 
514 
515  if ($order_by == "") {
516  $order_by = "e.time_created desc";
517  }
518 
519  if ($count) {
520  $query = "SELECT count(e.guid) as total ";
521  } else {
522  $query = "SELECT e.* ";
523  }
524  $query .= "from {$CONFIG->dbprefix}entities e"
525  . " JOIN {$CONFIG->dbprefix}groups_entity g on e.guid=g.guid where ";
526 
527  $query .= "(g.name like \"%{$criteria}%\" or g.description like \"%{$criteria}%\")";
528  $query .= " and $access";
529 
530  if (!$count) {
531  $query .= " order by $order_by limit $offset, $limit"; // Add order and limit
532  return get_data($query, "entity_row_to_elggstar");
533  } else {
534  if ($count = get_data_row($query)) {
535  return $count->total;
536  }
537  }
538  return false;
539 }
540 
553 function search_list_groups_by_name($hook, $user, $returnvalue, $tag) {
554  elgg_deprecated_notice('search_list_groups_by_name() was deprecated by new search plugin', 1.7);
555  // Change this to set the number of groups that display on the search page
556  $threshold = 4;
557 
558  $object = get_input('object');
559 
560  if (!get_input('offset') && (empty($object) || $object == 'group')) {
561  if ($groups = search_for_group($tag, $threshold)) {
562  $countgroups = search_for_group($tag, 0, 0, "", true);
563 
564  $return = elgg_view('group/search/startblurb', array('count' => $countgroups, 'tag' => $tag));
565  foreach ($groups as $group) {
566  $return .= elgg_view_entity($group);
567  }
568  $vars = array('count' => $countgroups, 'threshold' => $threshold, 'tag' => $tag);
569  $return .= elgg_view('group/search/finishblurb', $vars);
570  return $return;
571  }
572  }
573 }
574 
586 function list_group_search($tag, $limit = 10) {
587  elgg_deprecated_notice('list_group_search() was deprecated by new search plugin.', 1.7);
588  $offset = (int) get_input('offset');
589  $limit = (int) $limit;
590  $count = (int) search_for_group($tag, 10, 0, '', true);
591  $entities = search_for_group($tag, $limit, $offset);
592 
593  return elgg_view_entity_list($entities, $count, $offset, $limit, true, false);
594 
595 }
596 
616 function get_entities_from_metadata($meta_name, $meta_value = "", $entity_type = "",
617 $entity_subtype = "", $owner_guid = 0, $limit = 10, $offset = 0, $order_by = "",
618 $site_guid = 0, $count = FALSE, $case_sensitive = TRUE) {
619 
620  elgg_deprecated_notice('get_entities_from_metadata() was deprecated by elgg_get_entities_from_metadata()!', 1.7);
621 
622  $options = array();
623 
624  $options['metadata_names'] = $meta_name;
625 
626  if ($meta_value) {
627  $options['metadata_values'] = $meta_value;
628  }
629 
630  if ($entity_type) {
631  $options['types'] = $entity_type;
632  }
633 
634  if ($entity_subtype) {
635  $options['subtypes'] = $entity_subtype;
636  }
637 
638  if ($owner_guid) {
639  if (is_array($owner_guid)) {
640  $options['owner_guids'] = $owner_guid;
641  } else {
642  $options['owner_guid'] = $owner_guid;
643  }
644  }
645 
646  if ($limit) {
647  $options['limit'] = $limit;
648  }
649 
650  if ($offset) {
651  $options['offset'] = $offset;
652  }
653 
654  if ($order_by) {
655  $options['order_by'];
656  }
657 
658  if ($site_guid) {
659  $options['site_guid'];
660  }
661 
662  if ($count) {
663  $options['count'] = $count;
664  }
665 
666  // need to be able to pass false
667  $options['metadata_case_sensitive'] = $case_sensitive;
668 
670 }
671 
690 function get_entities_from_metadata_multi($meta_array, $entity_type = "", $entity_subtype = "",
691 $owner_guid = 0, $limit = 10, $offset = 0, $order_by = "", $site_guid = 0,
692 $count = false, $meta_array_operator = 'and') {
693 
694  elgg_deprecated_notice('get_entities_from_metadata_multi() was deprecated by elgg_get_entities_from_metadata()!', 1.7);
695 
696  if (!is_array($meta_array) || sizeof($meta_array) == 0) {
697  return false;
698  }
699 
700  $options = array();
701 
702  $options['metadata_name_value_pairs'] = $meta_array;
703 
704  if ($entity_type) {
705  $options['types'] = $entity_type;
706  }
707 
708  if ($entity_subtype) {
709  $options['subtypes'] = $entity_subtype;
710  }
711 
712  if ($owner_guid) {
713  if (is_array($owner_guid)) {
714  $options['owner_guids'] = $owner_guid;
715  } else {
716  $options['owner_guid'] = $owner_guid;
717  }
718  }
719 
720  if ($limit) {
721  $options['limit'] = $limit;
722  }
723 
724  if ($offset) {
725  $options['offset'] = $offset;
726  }
727 
728  if ($order_by) {
729  $options['order_by'];
730  }
731 
732  if ($site_guid) {
733  $options['site_guid'];
734  }
735 
736  if ($count) {
737  $options['count'] = $count;
738  }
739 
740  $options['metadata_name_value_pairs_operator'] = $meta_array_operator;
741 
743 }
744 
755 function menu_item($menu_name, $menu_url) {
756  elgg_deprecated_notice('menu_item() is deprecated by add_submenu_item', 1.7);
757  return make_register_object($menu_name, $menu_url);
758 }
759 
777 function search_for_object($criteria, $limit = 10, $offset = 0, $order_by = "", $count = false) {
778  elgg_deprecated_notice('search_for_object() was deprecated by new search plugin.', 1.7);
779  global $CONFIG;
780 
781  $criteria = sanitise_string($criteria);
782  $limit = (int)$limit;
783  $offset = (int)$offset;
784  $order_by = sanitise_string($order_by);
785 
787 
788  if ($order_by == "") {
789  $order_by = "e.time_created desc";
790  }
791 
792  if ($count) {
793  $query = "SELECT count(e.guid) as total ";
794  } else {
795  $query = "SELECT e.* ";
796  }
797  $query .= "from {$CONFIG->dbprefix}entities e
798  join {$CONFIG->dbprefix}objects_entity o on e.guid=o.guid
799  where match(o.title,o.description) against ('$criteria') and $access";
800 
801  if (!$count) {
802  $query .= " order by $order_by limit $offset, $limit"; // Add order and limit
803  return get_data($query, "entity_row_to_elggstar");
804  } else {
805  if ($count = get_data_row($query)) {
806  return $count->total;
807  }
808  }
809  return false;
810 }
811 
824 function search_list_objects_by_name($hook, $user, $returnvalue, $tag) {
825  elgg_deprecated_notice('search_list_objects_by_name was deprecated by new search plugin.', 1.7);
826 
827  // Change this to set the number of users that display on the search page
828  $threshold = 4;
829 
830  $object = get_input('object');
831 
832  if (!get_input('offset') && (empty($object) || $object == 'user')) {
833  if ($users = search_for_user($tag, $threshold)) {
834  $countusers = search_for_user($tag, 0, 0, "", true);
835 
836  $return = elgg_view('user/search/startblurb', array('count' => $countusers, 'tag' => $tag));
837  foreach ($users as $user) {
838  $return .= elgg_view_entity($user);
839  }
840  $return .= elgg_view('user/search/finishblurb',
841  array('count' => $countusers, 'threshold' => $threshold, 'tag' => $tag));
842 
843  return $return;
844 
845  }
846  }
847 }
848 
868 function get_entities_from_relationship($relationship, $relationship_guid,
869 $inverse_relationship = false, $type = "", $subtype = "", $owner_guid = 0,
870 $order_by = "", $limit = 10, $offset = 0, $count = false, $site_guid = 0) {
871 
872  elgg_deprecated_notice('get_entities_from_relationship() was deprecated by elgg_get_entities_from_relationship()!', 1.7);
873 
874  $options = array();
875 
876  $options['relationship'] = $relationship;
877  $options['relationship_guid'] = $relationship_guid;
878  $options['inverse_relationship'] = $inverse_relationship;
879 
880  if ($type) {
881  $options['types'] = $type;
882  }
883 
884  if ($subtype) {
885  $options['subtypes'] = $subtype;
886  }
887 
888  if ($owner_guid) {
889  $options['owner_guid'] = $owner_guid;
890  }
891 
892  $options['limit'] = $limit;
893 
894  if ($offset) {
895  $options['offset'] = $offset;
896  }
897 
898  if ($order_by) {
899  $options['order_by'];
900  }
901 
902  if ($site_guid) {
903  $options['site_guid'];
904  }
905 
906  if ($count) {
907  $options['count'] = $count;
908  }
909 
911 }
912 
930 function search_for_site($criteria, $limit = 10, $offset = 0, $order_by = "", $count = false) {
931  elgg_deprecated_notice('search_for_site() was deprecated by new search plugin.', 1.7);
932  global $CONFIG;
933 
934  $criteria = sanitise_string($criteria);
935  $limit = (int)$limit;
936  $offset = (int)$offset;
937  $order_by = sanitise_string($order_by);
938 
940 
941  if ($order_by == "") {
942  $order_by = "e.time_created desc";
943  }
944 
945  if ($count) {
946  $query = "SELECT count(e.guid) as total ";
947  } else {
948  $query = "SELECT e.* ";
949  }
950  $query .= "from {$CONFIG->dbprefix}entities e
951  join {$CONFIG->dbprefix}sites_entity s on e.guid=s.guid
952  where match(s.name, s.description, s.url) against ('$criteria') and $access";
953 
954  if (!$count) {
955  $query .= " order by $order_by limit $offset, $limit"; // Add order and limit
956  return get_data($query, "entity_row_to_elggstar");
957  } else {
958  if ($count = get_data_row($query)) {
959  return $count->total;
960  }
961  }
962  return false;
963 }
964 
977 function search_for_user($criteria, $limit = 10, $offset = 0, $order_by = "", $count = false) {
978  elgg_deprecated_notice('search_for_user() was deprecated by new search.', 1.7);
979  global $CONFIG;
980 
981  $criteria = sanitise_string($criteria);
982  $limit = (int)$limit;
983  $offset = (int)$offset;
984  $order_by = sanitise_string($order_by);
985 
987 
988  if ($order_by == "") {
989  $order_by = "e.time_created desc";
990  }
991 
992  if ($count) {
993  $query = "SELECT count(e.guid) as total ";
994  } else {
995  $query = "SELECT e.* ";
996  }
997  $query .= "from {$CONFIG->dbprefix}entities e
998  join {$CONFIG->dbprefix}users_entity u on e.guid=u.guid where ";
999 
1000  $query .= "(u.name like \"%{$criteria}%\" or u.username like \"%{$criteria}%\")";
1001  $query .= " and $access";
1002 
1003  if (!$count) {
1004  $query .= " order by $order_by limit $offset, $limit";
1005  return get_data($query, "entity_row_to_elggstar");
1006  } else {
1007  if ($count = get_data_row($query)) {
1008  return $count->total;
1009  }
1010  }
1011  return false;
1012 }
1013 
1026 function list_user_search($tag, $limit = 10) {
1027  elgg_deprecated_notice('list_user_search() deprecated by new search', 1.7);
1028  $offset = (int) get_input('offset');
1029  $limit = (int) $limit;
1030  $count = (int) search_for_user($tag, 10, 0, '', true);
1031  $entities = search_for_user($tag, $limit, $offset);
1032 
1033  return elgg_view_entity_list($entities, $count, $offset, $limit, true, false);
1034 }
1035 
1048 function search_list_users_by_name($hook, $user, $returnvalue, $tag) {
1049  elgg_deprecated_notice('search_list_users_by_name() was deprecated by new search', 1.7);
1050  // Change this to set the number of users that display on the search page
1051  $threshold = 4;
1052 
1053  $object = get_input('object');
1054 
1055  if (!get_input('offset') && (empty($object) || $object == 'user')) {
1056  if ($users = search_for_user($tag, $threshold)) {
1057  $countusers = search_for_user($tag, 0, 0, "", true);
1058 
1059  $return = elgg_view('user/search/startblurb', array('count' => $countusers, 'tag' => $tag));
1060  foreach ($users as $user) {
1061  $return .= elgg_view_entity($user);
1062  }
1063 
1064  $vars = array('count' => $countusers, 'threshold' => $threshold, 'tag' => $tag);
1065  $return .= elgg_view('user/search/finishblurb', $vars);
1066  return $return;
1067 
1068  }
1069  }
1070 }
1071 
1085 function extend_view($view, $view_name, $priority = 501, $viewtype = '') {
1086  elgg_deprecated_notice('extend_view() was deprecated by elgg_extend_view()!', 1.7);
1087  elgg_extend_view($view, $view_name, $priority, $viewtype);
1088 }
1089 
1100 function get_views($dir, $base) {
1101  elgg_deprecated_notice('get_views() was deprecated by elgg_get_views()!', 1.7);
1102  elgg_get_views($dir, $base);
1103 }
1104 
1115 function make_register_object($register_name, $register_value, $children_array = array()) {
1116  elgg_deprecated_notice('make_register_object() is deprecated by add_submenu_item()', 1.7);
1117  if (empty($register_name) || empty($register_value)) {
1118  return false;
1119  }
1120 
1121  $register = new \stdClass;
1122  $register->name = $register_name;
1123  $register->value = $register_value;
1124  $register->children = $children_array;
1125 
1126  return $register;
1127 }
1128 
1142  system_message(elgg_echo('deprecatedfunction', array('delete_user_entity')));
1143 
1144  return 1; // Always return that we have deleted one row in order to not break existing code.
1145 }
1146 
1160  system_message(elgg_echo('deprecatedfunction', array('delete_user_entity')));
1161 
1162  return 1; // Always return that we have deleted one row in order to not break existing code.
1163 }
extend_view($view, $view_name, $priority=501, $viewtype= '')
Extend a view.
search_for_object($criteria, $limit=10, $offset=0, $order_by="", $count=false)
Searches for an object based on a complete or partial title or description using full text searching...
$view
Definition: crop.php:68
$r
elgg_get_entities_from_metadata(array $options=array())
interfaces
Definition: metadata.php:255
list_group_search($tag, $limit=10)
Displays a list of group objects that have been searched for.
get_input($variable, $default=null, $filter_result=true)
Get some input from variables passed submitted through GET or POST.
Definition: input.php:27
elgg_add_action_tokens_to_url($url, $html_encode=false)
Adds action tokens to URL.
Definition: elgglib.php:1059
get_data_row($query, $callback="")
Retrieve a single row from the database.
Definition: database.php:66
delete_object_entity($guid)
THIS FUNCTION IS DEPRECATED.
search_for_user($criteria, $limit=10, $offset=0, $order_by="", $count=false)
Searches for a user based on a complete or partial name or username.
list_user_search($tag, $limit=10)
Displays a list of user objects that have been searched for.
if($guid==elgg_get_logged_in_user_guid()) $name
Definition: delete.php:21
list_entities($type="", $subtype="", $owner_guid=0, $limit=10, $fullview=true, $listtypetoggle=false, $pagination=true)
Lists entities.
$object
Definition: upgrade.php:12
elgg_get_entities_from_annotations(array $options=array())
Returns entities based upon annotations.
get_entities_from_access_collection($collection_id, $entity_type="", $entity_subtype="", $owner_guid=0, $limit=10, $offset=0, $order_by="", $site_guid=0, $count=false)
search_list_users_by_name($hook, $user, $returnvalue, $tag)
Returns a formatted list of users suitable for injecting into search.
$value
Definition: longtext.php:26
$return
Definition: opendd.php:15
if(!$count) $offset
Definition: pagination.php:25
$pagination
Definition: gallery.php:22
$guid
Removes an admin notice.
search_list_groups_by_name($hook, $user, $returnvalue, $tag)
Returns a formatted list of groups suitable for injecting into search.
$url
Definition: exceptions.php:24
elgg_get_views($dir, $base)
Returns the name of views for in a directory.
search_list_objects_by_name($hook, $user, $returnvalue, $tag)
Returns a formatted list of objects suitable for injecting into search.
is_ip_in_array()
Does nothing.
$options
Definition: index.php:14
make_register_object($register_name, $register_value, $children_array=array())
Constructs and returns a register object.
$owner_guid
elgg_get_file_list($directory, $exceptions=array(), $list=array(), $extensions=null)
Returns a list of files in $directory.
Definition: elgglib.php:336
$limit
Definition: userpicker.php:31
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
get_entities_from_relationship($relationship, $relationship_guid, $inverse_relationship=false, $type="", $subtype="", $owner_guid=0, $order_by="", $limit=10, $offset=0, $count=false, $site_guid=0)
Return entities from relationships.
$users
Definition: newest.php:3
global $CONFIG
sanitise_string($string)
Wrapper function for alternate English spelling (.
Definition: database.php:150
elgg_extend_view($view, $view_extension, $priority=501, $viewtype= '')
Extends a view with another view.
Definition: views.php:401
$user
Definition: ban.php:13
get_views($dir, $base)
Get views in a dir.
elgg_get_entities(array $options=array())
Returns an array of entities with optional filtering.
Definition: entities.php:490
get_entities_from_access_id($collection_id, $entity_type="", $entity_subtype="", $owner_guid=0, $limit=10, $offset=0, $order_by="", $site_guid=0, $count=false)
Get entities with the specified access collection id.
elgg_deprecated_notice($msg, $dep_version, $backtrace_level=1)
Log a notice about deprecated use of a function, view, etc.
Definition: elgglib.php:1006
elgg global
Pointer to the global context.
Definition: elgglib.js:12
$type
Definition: add.php:8
delete_user_entity($guid)
THIS FUNCTION IS DEPRECATED.
get_entities_from_annotations($entity_type="", $entity_subtype="", $name="", $value="", $owner_guid=0, $group_guid=0, $limit=10, $offset=0, $order_by="asc", $count=false, $timelower=0, $timeupper=0)
Get entities from annotations.
elgg_view($view, $vars=array(), $bypass=false, $ignored=false, $viewtype= '')
Return a parsed view.
Definition: views.php:354
get_library_files($directory, $exceptions=array(), $list=array())
Returns all php files in a directory.
$collection_id
Definition: delete.php:9
elgg system_message
Wrapper function for system_messages.
Definition: elgglib.js:374
get_entities_from_metadata($meta_name, $meta_value="", $entity_type="", $entity_subtype="", $owner_guid=0, $limit=10, $offset=0, $order_by="", $site_guid=0, $count=FALSE, $case_sensitive=TRUE)
Return a list of entities based on the given search criteria.
search_for_site($criteria, $limit=10, $offset=0, $order_by="", $count=false)
Searches for a site based on a complete or partial name or description or url using full text searchi...
elgg_list_entities(array $options=array(), $getter= 'elgg_get_entities', $viewer= 'elgg_view_entity_list')
Returns a string of rendered entities.
Definition: entities.php:586
get_data($query, $callback="")
Retrieve rows from the database.
Definition: database.php:50
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.
elgg_list_entities_from_annotations($options=array())
Returns a viewable list of entities from annotations.
elgg_validate_action_url($url)
Add action tokens to URL.
test_ip()
Does nothing.
elgg_list_registered_entities(array $options=array())
Returns a viewable list of entities based on the registered types.
Definition: entities.php:851
search_for_group($criteria, $limit=10, $offset=0, $order_by="", $count=false)
Searches for a group based on a complete or partial name or description.
list_registered_entities($owner_guid=0, $limit=10, $fullview=true, $listtypetoggle=false, $allowedtypes=true)
Lists entities.
elgg_view_entity(\ElggEntity $entity, $vars=array(), $bypass=false, $debug=false)
Returns a string of a rendered entity.
Definition: views.php:793
if(elgg_in_context('widget')) $count
Definition: pagination.php:20
elgg_get_entities_from_access_id(array $options=array())
Return entities based upon access id.
Definition: access.php:434
sanitise_int($int, $signed=true)
Sanitizes an integer for database use.
Definition: database.php:173
$container_guid
elgg_get_entities_from_relationship($options)
Return entities matching a given query joining against a relationship.
get_entities($type="", $subtype="", $owner_guid=0, $order_by="", $limit=10, $offset=0, $count=false, $site_guid=0, $container_guid=null, $timelower=0, $timeupper=0)
Returns entities.
_elgg_get_access_where_sql(array $options=array())
Returns the SQL where clause for enforcing read access to data.
Definition: access.php:216
elgg_view_entity_list($entities, $vars=array(), $offset=0, $limit=null, $full_view=true, $list_type_toggle=true, $pagination=true)
Returns a rendered list of entities with pagination.
Definition: views.php:984
$subtype
Definition: river.php:12
menu_item($menu_name, $menu_url)
Returns a menu item for use in the children section of add_menu() This is not currently used in the E...
$viewtype
Definition: start.php:76
$priority
$access
Definition: save.php:15
if(file_exists($welcome)) $vars
Definition: upgrade.php:93
delete_entities($type="", $subtype="", $owner_guid=0)
Delete multiple entities that match a given query.
list_entities_from_annotations($entity_type="", $entity_subtype="", $name="", $value="", $limit=10, $owner_guid=0, $group_guid=0, $asc=false, $fullview=true, $listtypetoggle=false)
Lists entities.