- AkteLib: added optional params "archiv", "signiert", "stud_selfservice", removed "uid"

- AkteLib and DmsLib: added comments, added fallback default user for insertvon
- FS_Model: added TempFS_model.php for writing temp files, added comments
This commit is contained in:
KarpAlex
2021-12-17 18:03:34 +01:00
parent 8c2af28595
commit 40493936c3
4 changed files with 164 additions and 46 deletions
+5
View File
@@ -114,15 +114,20 @@ class FS_Model extends CI_Model
return success($writeResult);
}
/**
* Removes a given file
*/
public function remove($filename)
{
// Check if the property _path represents a valid directory
$checkResult = $this->_checkPath();
if (isError($checkResult)) return $checkResult; // If not then return the error
// Check filename
if (isEmptyString($filename)) return error('The given filename is not valid');
// remove file
if (unlink($this->_path.DIRECTORY_SEPARATOR.$filename) === true)
{
return success();