- Adapted code to replace DocumentExportLib->showContent with DocumentExportLib->getContent + file download
- DocumentExportLib now makes use of the DocumentLib
- DmsLib->upload replaced by uploadFile
- Removed who parameter from DmsLib constructor
- Added insert by into DmsLib add and addLastVersion
- Removed commented code
- Replaced self with $this in the Anrechnung classes
- Added removeByPersonIdAndDmsId to AkteLib
- Removed deprecated methods from the DMSLib, these were the "problematic" types of methods:
- Methods that would perform an upload/download of the file (should be performed by a controller)
- Methods that were returning a base64 representation of the file (what if the file is a 1Gb?)
- Methods that were performing operation on the akte (should be done in the AkteLib)
- The first two types have been removed and added new utility method to read a file (wrapper of the DMSFSModel)
- The last type of methods has been removed and same functionalities already exists in the AkteLib
- Minor fixes
- AkteLib:
- Added new methods to get an akte with relative content (even from the DMS) with different parameters (akte_id, person_id, dokument_kurzbz, signiert, stud_selfservice)
- AkteModel:
- Removed the getArchiv method
- Replaced the usage of the AkteModel with the AkteLib as much as possible. AkteModel is used mainly to quickly check if an akte exists or not, otherwise the AkteLib is used for read/write operations
- Replaced the DmsLib usage with the AkteLib usage where the old deprecated DmsLib methods, that were working with the akte too, were used
- Adapted controllers/lehre/anrechnung/* to make use of the changed core/FHC_Controller->outputFile
- Changed application/core/FS_Model:
- It's not abstract anymore
- Added new constants READ_MODE, READ_WRITE_MODE, READ_APPEND_MODE, BLOCK_SIZE, META_URI
- Constructor accept a mandatory parameter
- Does not load the FilesystemLib anymore
- Renamed all the public methods with the suffix Base64
- Added new public methods openRead, openReadWrite, openReadAppend, close, readBlock and write
- Added new private methods _checkPath and _open
- Removed the libraries/FilesystemLib
- Adapted model content/DmsFS_model to make use of the changed core/FS_Model
- Changed libraries/DmsLib:
- Does not extend the FHC_Controller anymore
- removed private propery UPLOAD_PATH
- Cleaned code, make use of the standards
- Adapted to use the Base64 suffixed methods from core/FS_Model
- Deprecated old methods
- Refactored public methods download and getFileInfo
The fieldname represents the HTML uploadfile input name attribute, which
is given by the developer in the VIEW.
Signed-off-by: cris-technikum <hainberg@technikum-wien.at>
DMSLib now extends FHC Controller to use its new method 'outputFile',
which sets HTTP headers and reads the file.
DMSLib uses now download function to accept params from Controller like
own filename or special disposition.
Loading document and retrieving file info is outsourced into own method
to be reusable.
Signed-off-by: cris-technikum <hainberg@technikum-wien.at>
- Replace all show_error(getData( with show_error(getError(
- Replace all error($...->retval) with error(getError($...))
- Replace all ->outputJsonError(getData( with ->outputJsonError(getError(
- Replace all show_error($...->retval with show_error(getError($...
- Replace all outputJsonError($...->retval with outputJsonError(getError$...
- Replace all return error($...->retval) with return $...
- Changed language config
- Removed never used constants
- Changed rest_language in rest config file
- Adapted models that where extending FHC_Model
- Adapted code to load hlp_return_object
- Adapted code to use exit status codes constants
- application/libraries/* -> CS compliant
- FHC_Model isEntitled method now return error() or success()
- Updated all code that uses isEntitled method from FHC_Model
- Removed Squiz.PHP.DisallowSizeFunctionsInLoops from CS ruleset
- Removed depracated method replace from DB_Model
- Removed unused method pgArrayPhp from DB_Model
- Renamed method arrayMergeIndex to _arrayCombine in DB_Model and set as private
- Added method _manageUDFs to DB_Model (a wrapper for UDFLib->manageUDFs)