Commit Graph

216 Commits

Author SHA1 Message Date
Andreas Österreicher 78df57044e Resturlaubstage, Mehrarbeitsstunden und Urlaubsanspruch pro Jahr
entfernt. Diese können bei Mitarbeitern jetzt nicht mehr verwaltet
werden
2018-01-18 09:01:49 +01:00
Paolo 3cf42c4545 - Moved all the code related to authentication to AuthLib
- Changed configuration files autoload.php and rest.php to use AuthLib
- Added new method getCheckUserAuth to controller CheckUserAuth.php
- Removed libraries/FHC_Auth.php
- Removed models/CheckUserAuth_model.php
- Removed include/AddonAuthentication.php
2017-09-25 17:11:44 +02:00
Paolo 1d1ca17dc1 Now the organisation unit parameter for methods:
- getMessagesByPersonID
    - getMessagesByUID
    - getSentMessagesByPerson
    - getCountUnreadMessages
of controller system/Message must be the root of the organisation unit tree
2017-09-20 11:33:41 +02:00
Paolo 6fca6e45eb - Added optional parameter oe_kurzbz to method getStudiengangBewerbung of controller organisation/Studiengang2
- Added optional parameter oe_kurzbz to method getStudiengangBewerbung of model organisation/Studiengang_model
2017-09-20 10:41:20 +02:00
Paolo 7c25d6474c Changed methods:
- getMessagesByPersonID
- getMessagesByUID
- getSentMessagesByPerson
- getCountUnreadMessages
of controller system/Message to get messages also with a given organisation unit
2017-09-19 19:02:55 +02:00
Paolo f7153aa6f5 - Changed config entry addons_aufnahme_url in fhcomplete.php. Now it's an array having an entry for each organisation unit root
- Changed redirectByToken method in controllers/Redirect, now:
	- Loads the root of the organisation unit tree using the oe_kurzbz present in the message, loaded using a token
	- Redirect to the related aufnahme using the organisation unit previously found
- Changed method send in system/Messages, now retrives the oe_kurzbz of the recipients/prestudents to store these oe_kurzbz in the table tbl_msg_message (used by FAS)
- Added method getRoot to library OrganisationseinheitLib to retrive the root of an organisation unit by the given oe_kurzbz
- Added method getOrganisationunits to model crm/Prestudent_model, retrives the oe_kurzbz using the given prestudent/s id/s
- Added some comments here and there
2017-09-19 17:34:00 +02:00
Paolo 5ff875917c Added method getAppliedStudiengangFromNowOE to get all the applied study courses for one person
- Starting from the current study semester
- For an organisation unit present in the organisation units tree that has as root the given parameter
2017-09-15 14:15:04 +02:00
Paolo e45e7b02fa Codeception test updated 2017-09-01 14:11:39 +02:00
Paolo a56412d687 Merge branch 'udf' 2017-08-07 16:44:03 +02:00
Paolo 35e8df3b22 Added method getAppliedStudiengangFromNow to controller Studiengang.
This method can retrive all the applied studiengang for a person from
the current studiensemester
2017-08-07 15:15:08 +02:00
Paolo f5d3f20ec7 Merge branch 'master' into udf 2017-08-03 15:37:37 +02:00
Andreas Oesterreicher 42960ffe20 Moodle-Integration aus FHComplete Core entfernt und in eigenes Addon
ausgelagert.
Support für Moodle 1.9 entfernt
2017-08-02 14:05:31 +02:00
Paolo 6573d46525 Merge branch 'master' into udf 2017-07-21 15:08:50 +02:00
Andreas Oesterreicher b8b5b95251 Added additional parameter checks 2017-07-19 15:25:17 +02:00
Andreas Oesterreicher 4603befefc Added API calls to get Prestudents according to its status 2017-07-18 17:19:53 +02:00
Paolo df51fb2988 Added method postUDF to controller system/UDF/UDF 2017-07-06 11:17:12 +02:00
Paolo a530cd22b4 - Bugfix UDF dropdown, wrong check for selected value
- UDF checkbox now is only one value, no multiple checkbox anymore
- Added method saveUDFs to model UDF_model
- Added new constants to resolve json schema parameters
2017-07-06 11:07:43 +02:00
Paolo 9eb2ea854d Merge branch 'master' into udf 2017-06-28 12:07:41 +02:00
Paolo ac438c1b94 Added parameter no_file to API content/Dms/AktenAcceptedDms 2017-06-27 11:32:59 +02:00
Paolo b73bf1dd32 - Added method listFields to DB_Model
- Added method fieldExists to DB_Model
2017-06-19 12:39:08 +02:00
Paolo 3ac8d7d604 - Added parameter decode to API /system/UDF/UDF to decode json
- UDF bugfix: now it checks if a table has the column udf_values before
performing an insert or update
2017-06-19 12:15:28 +02:00
Paolo 294c65a9bf Added controller UDF to read UDFs definitions
UDFs update&insert second version
2017-06-09 15:45:33 +02:00
Paolo 811f5d395d - Escaped all the parameters concatenated to a query
- Added parameter titel to Studiengang2->getAppliedStudiengang
- Added parameter titel to Studiengang_model->getAppliedStudiengang
2017-04-06 11:13:16 +02:00
Paolo 4984b69366 - DB_Model: workaround for CI_DB_driver->_list_columns (if there are two
tables with the same name in two different schemas, it returns a list of
fields from the two tables)
- DB_Model: changed loadTree to use the new method _list_columns
- DB_Model: added the method getSchemaAndTable
- Updated Studiengang_model to specify the schema when using the
loadTree method
- Studiengang_model: removed the titel parameter from method getAppliedStudiengang
- Studiengang2 controller removed the titel parameter from method getAppliedStudiengang
2017-04-04 18:27:31 +02:00
bison-paolo 76046c6b94 - Bugfix Reihungstest controller
- Bugfix method getCountUnreadMessages in Recipient_model
2017-02-02 12:03:23 +01:00
bison-paolo fac1b77681 Added method getAvailableReihungstestByPersonId 2017-01-31 11:59:11 +01:00
bison-paolo 1ccc8a8a6f Enhancement of method _validate of controller Person 2017-01-26 11:32:04 +01:00
bison-paolo 59ab63ace2 Enhancement of method _validate of controller Person 2017-01-25 15:13:57 +01:00
bison-paolo ecc10431fe Added method getLastStatuses to Prestudent model and controller 2017-01-13 17:59:58 +01:00
bison-paolo fb9f4e046b Added getAppliedStudiengang method 2016-12-23 12:03:49 +01:00
bison-paolo 603ccd1793 Added method getAkteAcceptedDms 2016-12-21 17:50:03 +01:00
bison-paolo b99123efc6 Added method getCountUnreadMessages 2016-12-20 11:28:51 +01:00
bison-paolo 729b4930bd Message system bugfixes 2016-12-15 15:59:11 +01:00
bison-paolo ad204604b1 Fix 2016-12-15 12:00:59 +01:00
bison-paolo 4b16accd33 Added new parameter multiPartMime to method postMessageVorlage of
controller Message
2016-12-14 11:00:49 +01:00
bison-paolo d96a0e98d5 - Fixed codeception test
- Updated the api test suite
- Added the script generate.php to automatically generate the test cases
for the controllers
2016-11-23 15:09:10 +01:00
bison-paolo 66afe6d8f9 Added new parameter nachreichbar to controller Dokumentstudiengang and
to model Dokumentstudiengang_model
2016-11-17 14:53:23 +01:00
bison-paolo 2a0cd525dd - Updated codeception test cases
- Fixed controllers
- Removed unused controller Thread
2016-11-15 17:00:01 +01:00
bison-paolo 39b4c8057d Removed _parseData workaround 2016-10-19 14:49:54 +02:00
bison-paolo 7c1d0bb58a Controller Person _validate method updated 2016-10-18 10:43:05 +02:00
bison-paolo 9e7f9a7fe5 Added new controller Statusgrund 2016-10-17 17:11:31 +02:00
bison-paolo f3b79cd731 - Added method chkRights to DB_Model
- Added method toPhp to DB_Model to convert array and boolean types from PostgresSQL to php
- Added method execQuery to DB_Model to execute a query (it calls toPhp)
- Added method pgsqlArrayToPhpArray to convert a pgsql array to php
- Updated DB_Model methods to using chkRights (and toPhp where it is needed)
- Removed methods escapeArray and _pgsqlArrayToPhpArray from controller APIv1_Controller
- Removed escapeArray from controllers Dokumentstudiengang and Dokument
- Updated models to use execQuery (and chkRights where it is needed)
2016-10-17 17:07:51 +02:00
bison-paolo a20bf91193 - Added functions isSuccess, isError and hasData in message helper
- Updated the code using these new functions
2016-10-14 15:04:15 +02:00
bison-paolo f8c70df0bc - Renamed PCRMLib to CallerLib :(
- Splitted the controller PCRM in two different controllers: CallerLibrary and CallerModel
2016-10-14 13:33:22 +02:00
bison-paolo 8e0ca12deb - All permission functionalities now are in the library PermissionLib
- All return messages functions are in the message helper and it is loaded by the core classes
- Added the missing constant FHC_NOPK
- Updated all the interested classes with the new permission method
- Updated all the interested classes with the new return message functions
2016-10-13 17:53:12 +02:00
bison-paolo 40f51d035f - Added method postSetAcceptedDocuments to controller Dokumentprestudent
- Added method setAcceptedDocuments to model Dokumentprestudent_model
2016-10-13 14:35:39 +02:00
bison-paolo ccb9daffaa Automatically set as accepted all the uploaded documents
- Added migration script 019_dokumentprestudent.php
- Added method postSetAccepted to controller Dokumentprestudent
- Added method setAccepted to model Dokumentprestudent_model
2016-10-12 15:39:37 +02:00
bison-paolo 56cb58ca5e Removing parameter "accepted" when saving an akte 2016-10-12 11:07:22 +02:00
bison-paolo 3d4167c39f Changes to manage the specialization of a prestudent:
- Added method getSpecialization to controller Prestudent
- Added method postRmSpecialization to controller Prestudent
- Added method postSpecialization to controller Prestudent
- Added method getSpecialization to model Notiz_model
- Added method rmSpecialization to model Notiz_model
- Added method addSpecialization to model Notiz_model
2016-10-11 16:56:12 +02:00
bison-paolo ffb5cb50ca Changes in method getAktenAccepted of controller Akte and model Akten_model 2016-10-11 14:12:38 +02:00