Commit 181ddc466f2ed99b0f42a2802aa837f0e0febd8d
1 parent
d62196f6
Initial revision. Create and delete folders on the file system
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@361 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
40 additions
and
0 deletions
lib/foldermanagement/PhysicalFolderManagement.inc
0 → 100644
| 1 | +<?php | |
| 2 | + | |
| 3 | +/** | |
| 4 | +* Contains static functions for doing physical folder managements | |
| 5 | +* such as creating/deleting folders | |
| 6 | +* | |
| 7 | +* @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa | |
| 8 | +* @date 19 January 2003 | |
| 9 | +* | |
| 10 | +* @todo finished createFolder() function - find out correct mode | |
| 11 | +*/ | |
| 12 | + | |
| 13 | +class PhysicalFolderManagement { | |
| 14 | + | |
| 15 | + /** | |
| 16 | + * Create a physical directory on the file system | |
| 17 | + * | |
| 18 | + * @param Folder path | |
| 19 | + * @param Folder mode | |
| 20 | + * | |
| 21 | + */ | |
| 22 | + function createFolder($sPath, $iMode) { | |
| 23 | + | |
| 24 | + | |
| 25 | + } | |
| 26 | + | |
| 27 | + /** | |
| 28 | + * Delete a physical folder on the file system | |
| 29 | + * | |
| 30 | + * @param Folder path | |
| 31 | + * | |
| 32 | + * @return boolean true on successful delete, false otherwise | |
| 33 | + */ | |
| 34 | + function deleteFolder($sPath) { | |
| 35 | + return rmdir($sPath); | |
| 36 | + } | |
| 37 | + | |
| 38 | +} | |
| 39 | + | |
| 40 | +?> | ... | ... |