From ca252d85643204cc425b06a1ad41e03d30a07019 Mon Sep 17 00:00:00 2001 From: Romain Neutron Date: Mon, 23 Jan 2012 18:19:07 +0100 Subject: [PATCH] Moved vocabulary to Alchemy namespace --- .../databox/Field/VocabularyControl.class.php | 40 ------------ .../VocabularyControl/Interface.class.php | 26 -------- .../Field/VocabularyControl/User.class.php | 65 ------------------- 3 files changed, 131 deletions(-) delete mode 100644 lib/classes/databox/Field/VocabularyControl.class.php delete mode 100644 lib/classes/databox/Field/VocabularyControl/Interface.class.php delete mode 100644 lib/classes/databox/Field/VocabularyControl/User.class.php diff --git a/lib/classes/databox/Field/VocabularyControl.class.php b/lib/classes/databox/Field/VocabularyControl.class.php deleted file mode 100644 index 118492406d..0000000000 --- a/lib/classes/databox/Field/VocabularyControl.class.php +++ /dev/null @@ -1,40 +0,0 @@ -like(\User_Query::LIKE_EMAIL, $query) - ->like(\User_Query::LIKE_FIRSTNAME, $query) - ->like(\User_Query::LIKE_LASTNAME, $query) - ->like(\User_Query::LIKE_LOGIN, $query) - ->like_match(\User_Query::LIKE_MATCH_OR) - ->on_base_ids(array_keys($for_user->ACL()->get_granted_base(array('canadmin')))) - ->limit(0, 50) - ->execute()->get_results(); - - $results = array(); - - foreach ($users as $user) - { - $results[] = array( - 'id' => $user->get_id(), - 'label' => $user->get_display_name(), - ); - } - - return $results; - } - -} \ No newline at end of file