aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/input.php
diff options
context:
space:
mode:
authorSteve Clay <steve@mrclay.org>2013-02-04 21:09:02 -0500
committercash <cash.costello@gmail.com>2013-02-09 10:30:34 -0500
commit011485988a8fa734c2ed74fec21031b3beebbcfd (patch)
tree75edb16fa13e82c1fa54d28ae0a43cfa6089e94c /engine/lib/input.php
parent3a644351f6bd26fc35b6905a30bbb52e89916078 (diff)
downloadelgg-011485988a8fa734c2ed74fec21031b3beebbcfd.tar.gz
elgg-011485988a8fa734c2ed74fec21031b3beebbcfd.tar.bz2
Lots of new @todos :(
Diffstat (limited to 'engine/lib/input.php')
-rw-r--r--engine/lib/input.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/engine/lib/input.php b/engine/lib/input.php
index bbb9ff94d..2d9bae4dd 100644
--- a/engine/lib/input.php
+++ b/engine/lib/input.php
@@ -226,6 +226,8 @@ function elgg_clear_sticky_value($form_name, $variable) {
/**
* Page handler for autocomplete endpoint.
*
+ * @todo split this into functions/objects, this is way too big
+ *
* /livesearch?q=<query>
*
* Other options include:
@@ -288,6 +290,7 @@ function input_livesearch_page_handler($page) {
if ($entities = get_data($query)) {
foreach ($entities as $entity) {
+ // @todo use elgg_get_entities (don't query in a loop!)
$entity = get_entity($entity->guid);
/* @var ElggUser $entity */
if (!$entity) {
@@ -338,6 +341,7 @@ function input_livesearch_page_handler($page) {
";
if ($entities = get_data($query)) {
foreach ($entities as $entity) {
+ // @todo use elgg_get_entities (don't query in a loop!)
$entity = get_entity($entity->guid);
/* @var ElggGroup $entity */
if (!$entity) {
@@ -386,6 +390,7 @@ function input_livesearch_page_handler($page) {
if ($entities = get_data($query)) {
foreach ($entities as $entity) {
+ // @todo use elgg_get_entities (don't query in a loop!)
$entity = get_entity($entity->guid);
/* @var ElggUser $entity */
if (!$entity) {