Commit f01c5784b60ff966ddb840a8731823282be01e8a

Authored by Neil Blakey-Milner
1 parent 782646c2

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).


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3557 c91229c3-7414-0410-bfa2-8a42b809f60b
lib/foldermanagement/Folder.inc
@@ -603,6 +603,13 @@ class Folder extends KTEntity { @@ -603,6 +603,13 @@ class Folder extends KTEntity {
603 return false; 603 return false;
604 } 604 }
605 } 605 }
  606 +
  607 + function getByParentIDAndLookupID($iParentID, $iLookupID) {
  608 + return KTEntityUtil::getByDict('Folder', array(
  609 + 'parent_id' => $iParentID,
  610 + 'permission_lookup_id' => $iLookupID,
  611 + ), array('multi' => true));
  612 + }
606 } 613 }
607 614
608 ?> 615 ?>