From 5f196389cf27f248e349f9925e41462946516d80 Mon Sep 17 00:00:00 2001 From: brettp Date: Wed, 16 Sep 2009 00:40:27 +0000 Subject: Changed get_entities_from_access_collection() to get_entities_from_access_id() to be more generic. git-svn-id: https://code.elgg.org/elgg/trunk@3488 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/access.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/engine/lib/access.php b/engine/lib/access.php index 7edb2d012..80348a692 100644 --- a/engine/lib/access.php +++ b/engine/lib/access.php @@ -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); } -- cgit v1.2.3