From f01c5784b60ff966ddb840a8731823282be01e8a Mon Sep 17 00:00:00 2001 From: Neil Blakey-Milner Date: Thu, 1 Sep 2005 17:18:19 +0000 Subject: [PATCH] getByParentIDAndLookupID returns all sub-folders in a folder that have the lookups passed in (ie, so that only those sub-folders accessible by a specific user with a specific permission will be returned). --- lib/foldermanagement/Folder.inc | 7 +++++++ 1 file changed, 7 insertions(+), 0 deletions(-) diff --git a/lib/foldermanagement/Folder.inc b/lib/foldermanagement/Folder.inc index 6e3ad2d..3100e3f 100644 --- a/lib/foldermanagement/Folder.inc +++ b/lib/foldermanagement/Folder.inc @@ -603,6 +603,13 @@ class Folder extends KTEntity { return false; } } + + function getByParentIDAndLookupID($iParentID, $iLookupID) { + return KTEntityUtil::getByDict('Folder', array( + 'parent_id' => $iParentID, + 'permission_lookup_id' => $iLookupID, + ), array('multi' => true)); + } } ?> -- libgit2 0.21.4