![]() |
FOSSology
4.6.0
Open Source License Compliance by Open Source Software
|

Public Member Functions | |
| __construct (DbManager $dbManager, UserDao $userDao, UploadDao $uploadDao) | |
| hasTopLevelFolder () | |
| insertFolder ($folderName, $folderDescription, $parentFolderId=self::TOP_LEVEL) | |
| getFolderId ($folderName, $parentFolderId=self::TOP_LEVEL) | |
| insertFolderContents ($parentId, $foldercontentsMode, $childId) | |
| getRootFolder ($userId) | |
| getDefaultFolder ($userId) | |
| getFolderTreeCte ($parentId=null) | |
| getFolderStructure ($parentId=null) | |
| countFolderUploadsBatch ($folderIds, $userGroupMap) | |
| countFolderUploads ($parentId, $userGroupMap) | |
| getAllFolderIds () | |
| getFolderChildUploads ($parentId, $trustGroupId) | |
| getFolderUploads ($parentId, $trustGroupId=null) | |
| getAllUploadsForGroup ($trustGroupId) | |
| Get all uploads accessible to a group in a single query. More... | |
| createFolder ($folderName, $folderDescription, $parentId) | |
| ensureTopLevelFolder () | |
| isWithoutReusableFolders ($folderStructure) | |
| getContent ($folderContentId) | |
| moveContent ($folderContentId, $newParentId) | |
| copyContent ($folderContentId, $newParentId) | |
| getRemovableContents ($folderId) | |
| isRemovableContent ($childId, $mode) | |
| removeContent ($folderContentId) | |
| removeContentById ($uploadpk, $folderId) | |
| getFolderChildFolders ($folderId) | |
| getFolder ($folderId) | |
| isFolderAccessible ($folderId, $userId=null) | |
| getFolderContentsId ($childId, $mode) | |
| getFolderParentId ($folderPk) | |
Public Attributes | |
| const | FOLDER_KEY = "folder" |
| const | DEPTH_KEY = "depth" |
| const | REUSE_KEY = 'reuse' |
| const | TOP_LEVEL = 1 |
| const | MODE_FOLDER = 1 |
| const | MODE_UPLOAD = 2 |
| const | MODE_ITEM = 4 |
Protected Member Functions | |
| fixFolderSequence () | |
| isInFolderTree ($parentId, $folderId) | |
| isContentMovable ($content, $newParentId) | |
Private Attributes | |
| $dbManager | |
| $userDao | |
| $uploadDao | |
| $logger | |
Definition at line 17 of file FolderDao.php.
| Fossology\Lib\Dao\FolderDao::countFolderUploads | ( | $parentId, | |
| $userGroupMap | |||
| ) |
| int | $parentId | |
| string[] | $userGroupMap | map groupId=>groupName |
Definition at line 250 of file FolderDao.php.
| Fossology\Lib\Dao\FolderDao::countFolderUploadsBatch | ( | $folderIds, | |
| $userGroupMap | |||
| ) |
| int[] | $folderIds | |
| string[] | $userGroupMap | map groupId=>groupName |
Definition at line 205 of file FolderDao.php.
| Fossology\Lib\Dao\FolderDao::getAllUploadsForGroup | ( | $trustGroupId | ) |
Get all uploads accessible to a group in a single query.
| int | $trustGroupId |
Definition at line 323 of file FolderDao.php.
| Fossology\Lib\Dao\FolderDao::getDefaultFolder | ( | $userId | ) |
| Fossology\Lib\Dao\FolderDao::getFolder | ( | $folderId | ) |
| Fossology\Lib\Dao\FolderDao::getFolderContentsId | ( | $childId, | |
| $mode | |||
| ) |
Get the folder contents id for a given child id
| integer | $childId | Id of the child |
| integer | $mode | Mode of child |
Definition at line 533 of file FolderDao.php.
| Fossology\Lib\Dao\FolderDao::getFolderParentId | ( | $folderPk | ) |
For a given folder id, get the parent folder id.
| integer | $folderPk | ID of the folder |
Definition at line 549 of file FolderDao.php.
| Fossology\Lib\Dao\FolderDao::getFolderUploads | ( | $parentId, | |
$trustGroupId = null |
|||
| ) |
| int | $parentId | |
| int | $trustGroupId |
Definition at line 306 of file FolderDao.php.
| Fossology\Lib\Dao\FolderDao::getRootFolder | ( | $userId | ) |
| Fossology\Lib\Dao\FolderDao::hasTopLevelFolder | ( | ) |
Definition at line 48 of file FolderDao.php.
| Fossology\Lib\Dao\FolderDao::isFolderAccessible | ( | $folderId, | |
$userId = null |
|||
| ) |