]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Changed get_entities_from_access_collection() to get_entities_from_access_id() to...
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 16 Sep 2009 00:40:27 +0000 (00:40 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 16 Sep 2009 00:40:27 +0000 (00:40 +0000)
git-svn-id: https://code.elgg.org/elgg/trunk@3488 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/access.php

index 7edb2d0120eeac3557e9713b17aed79ea628133c..80348a69239b3e8f4d04b686f6975a7a513f94f5 100644 (file)
@@ -615,7 +615,7 @@ END;
                 * @param $count
                 * @return unknown_type
                 */
-               function 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) {
+               function 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) {
                        global $CONFIG;
                        
                        if (!$collection_id)
@@ -691,11 +691,11 @@ END;
                 * @param $pagination
                 * @return str
                 */
-               function list_entities_from_access_collection($collection_id, $entity_type = "", $entity_subtype = "", $owner_guid = 0, $limit = 10, $fullview = true, $viewtypetoggle = true, $pagination = true) {
+               function list_entities_from_access_id($collection_id, $entity_type = "", $entity_subtype = "", $owner_guid = 0, $limit = 10, $fullview = true, $viewtypetoggle = true, $pagination = true) {
                        $offset = (int) get_input('offset');
                        $limit = (int) $limit;
-                       $count = get_entities_from_access_collection($collection_id, $entity_type, $entity_subtype, $owner_guid, $limit, $offset, "", 0, true);
-                       $entities = get_entities_from_access_collection($collection_id, $entity_type, $entity_subtype, $owner_guid, $limit, $offset, "", 0, false);
+                       $count = get_entities_from_access_id($collection_id, $entity_type, $entity_subtype, $owner_guid, $limit, $offset, "", 0, true);
+                       $entities = get_entities_from_access_id($collection_id, $entity_type, $entity_subtype, $owner_guid, $limit, $offset, "", 0, false);
                        
                        return elgg_view_entity_list($entities, $count, $offset, $limit, $fullview, $viewtypetoggle, $pagination);
                }