Commit Graph

131 Commits

Author SHA1 Message Date
paolo c8c580131c - Moved all the logic from controller PCRM to PCRMLib
- Extended functionality to others HTTP methods
- Added checking permissions if the requested resource is a library
(permissions are automatically handled by models) using PermissionLib
- Extended PermissionLib
2016-08-01 14:07:40 +02:00
paolo 1c01faba5f This controller allows to call any methods of any class present in libraries and in models.
First raw version, code to be refined. Functionality to be extended to others HTTP methods.

PS: PCRM stands for "Please Christian Rename Me", because I've no name to give to it :D
2016-07-29 16:33:21 +02:00
paolo 4b82843c76 - Added parameter blockTags to controller Phrase
If this parameter is set to "no", it will be removed the tags <p> and </p>
from the beginning and from the end of the returned phrases
2016-07-29 15:36:32 +02:00
paolo 9ed193d9b8 Moved methods getLastStatus from Prestudent to Prestudentstatus 2016-07-27 14:28:10 +02:00
paolo 3599294237 Added method getLastStatus to controller Prestudentstatus 2016-07-27 13:50:07 +02:00
paolo 88a395b31e Bug fixes 2016-07-25 19:27:04 +02:00
paolo 178b15315f Slightly better performance 2016-07-19 17:33:27 +02:00
paolo 0eaf360140 Added parameters aktiv and onlinebewerbung to method getByStudiengangStudiensemester of controller Bewerbungstermine 2016-07-19 17:04:44 +02:00
paolo 42dabba56e Merge origin/ci into ci 2016-07-19 16:03:20 +02:00
paolo 8899a162fd Added method getByStudiengangStudiensemester to controller Bewerbungstermine 2016-07-19 16:03:08 +02:00
Stefan Puraner 19e63622d7 fixed typo 2016-07-19 15:57:16 +02:00
paolo 5b1ad70677 Merge origin/ci into ci 2016-07-19 15:32:30 +02:00
paolo e580df583a Added method getStudiengangStudienplan to controller Studiengang 2016-07-19 15:32:14 +02:00
Stefan Puraner 325608ff6f fixed typo in method name 2016-07-19 11:25:52 +02:00
paolo ad1ada800c Added method getDokumentstudiengangByStudiengang_bz to controller Dokumentstudiengang 2016-07-19 10:31:58 +02:00
paolo 2568d8f912 - Removed the parameter "sprache" from controller Message
- Added method escape to class DB_Model
- Changed method sendMessageVorlage of MessageLib to send messages trying
to use the same language of the receiver, and improved message errors
- Added OrganisationseinheitLib to handle a recursive search using in the
organisation tree
- Removed from PhrasesLib the method loadVorlagetext because is already
present in VorlageLib
- Changed method loadVorlagetext of VorlageLib, now it searches the template
using the organisation tree
- Added method getOneLevel to model Organisationseinheit_model to get one
level of the organisation tree
2016-07-15 13:38:09 +02:00
paolo c0bf5a544f Added method postDelReihungstest() to controller Prestudent 2016-07-13 10:13:19 +02:00
paolo 483d133fc1 Added parameter "sprache" to method postMessageVorlage of controller Message. It's required. 2016-07-12 11:27:58 +02:00
Stefan Puraner 325e7f49c6 fixed bug when index is missing in post data 2016-07-06 13:31:34 +02:00
paolo c85a406ec6 Merge origin/ci into ci 2016-07-05 16:25:24 +02:00
paolo 8e37e85ecc Because the column ort_kurzbz of the table tbl_rt_person is now optional,
the join with the table tbl_ort has been replaced with a left join
2016-07-05 16:24:46 +02:00
Stefan Puraner 1590fad8bb fixed bug 2016-07-05 15:36:00 +02:00
paolo 9cce095e9b - Added permissions for table public.tbl_rt_person
- Added method postAddReihungstest to controller Prestudent
- Added method getReihungstestByPersonID to controller Reihungstest
- Fixed tables structure in the migration script 011_reihungstest.php
- Added model RtPerson_model
2016-07-01 10:50:37 +02:00
paolo 341d5cf8da Changed method getGemeinde of controller Gemeinde, now it returns all data
if no parameters are specified. Data are ordered by the field plz.
2016-06-29 16:27:25 +02:00
paolo 7cdac1d047 Added method getByStudiengangStudiensemester to controller Reihungstest 2016-06-29 16:16:14 +02:00
paolo a3210781ea - Added permission system/vorlagestudiengang to dump.sql
- Added method getMessagesByToken to controller Message
- Library MessageLib now load the helper fhc_helper
- Added new method getMessagesByToken to library MessageLib
- Added field relationmessage_id to methods sendMessage and sendMessageVorlage
- Method sendMessageVorlage now checks if the text and the subject for
the template are not empty
- Method sendMessageVorlage now saves the token automatically generated
- Method sendMessageVorlage now return a more comprehensive error message
- Method getMessagesByPerson of Message_model now checks for the right permissions
- Added fields relationmessage_id and person_id in getMessagesByPerson query
- Added method getMessagesByToken to model Message_model
2016-06-29 15:41:40 +02:00
paolo 94ae62ca14 Changed the method postMessage of controller Message, now it works even
without recipients
2016-06-29 10:45:32 +02:00
paolo a68dfa7ba2 Added method postChangeStatus to controller Message 2016-06-28 18:13:20 +02:00
paolo d2e3a346ce Fix: Phrase controller still tries to use the method _getUID 2016-06-28 15:05:02 +02:00
paolo 5e4090e0ce _validate method of Person controller now checks correctly the parameters, in accordance with the table structure 2016-06-27 14:58:46 +02:00
paolo 9a4f5480c4 - Added permission basis/phrase to dump.sql
- The function getAuthUID() present in the helper fhcauth_helper.php
now tries to work always with CI session to get the uid
- REST_controller doesn't need anymore to handle the uid
- FHC_Controller and FHC_Model load fhcauth_helper in their constructor,
so any class that extends them now could call the function getAuthUID()
anywhere in the code
- The controllers don't need anymore to pass the uid to the models or to the
libraries
- Library FHC_DB_ACL load fhcauth_helper in its constructor and uses getAuthID()
2016-06-24 13:22:27 +02:00
paolo 58a6da42ae The method loadWhole has been removed from model DB_Model.
The same functionality has given by calling the load method without parameters
2016-06-24 10:39:52 +02:00
paolo 226d1652ef Merge 2016-06-23 10:34:42 +02:00
paolo f35ede3974 - Added Phrase controller
- Phrase controller has the method getPhrases() to get sentences translated into several languages
- Added method getPhrases to PhrasesLib
- Modified the PhrasesLib constructor to pass the uid to the models
- Added method getPhrases to Phrase_model
2016-06-22 14:59:49 +02:00
paolo 95801a2e70 - Fix: Message_model queries does not get body from tbl_msg_message
- Added method getMessagesByUID to Message controller
2016-06-22 10:34:28 +02:00
paolo d425653d86 Modified _validate method of Message controller, now it returns a standard
error or success message
2016-06-22 09:35:36 +02:00
paolo 971e4ed6de Fixed controller message parameters validation 2016-06-21 15:21:51 +02:00
paolo 5a5472257a - Modified MessageLib constructor to allow to give the parameter UID from a Controller
- Controller Message now works with MessageLib
- Added getMessagesByPersonID method to controller Message
- Added permissions basis/message and fs/system to dump.sql
2016-06-21 15:07:51 +02:00
paolo 5a5a22e0d5 - Removed body tag from footer.php and header.php
- Added permission fs/dms to dump.sql and fhcomplete.php
- Added FilesystemLib to read and write from/in filesystem
- Added FS_Model to manage filesystem with the same permission system of DB_Model
- Added more models to handle the Dms
- Modified Dms controller to use the new models
2016-06-21 11:10:55 +02:00
paolo c5ee56f23d Moved _validate method from the model Person_model to the controller Person 2016-06-16 12:18:29 +02:00
paolo 6536ff155c - Moved the _validate method from the controller Person to the model Person_model
- Fixed method _validate
2016-06-15 14:09:01 +02:00
paolo 149b04654a Added the method getOnlyKontaktByPersonID to controller Kontakt 2016-06-15 11:30:22 +02:00
paolo 28751df237 Merge origin/ci into ci 2016-06-15 11:23:03 +02:00
paolo 8d109cf170 DMS bugfix: if no version is submitted 2016-06-15 11:22:45 +02:00
Stefan Puraner 86a98e9a8c added parse data method 2016-06-15 10:38:19 +02:00
Stefan Puraner 8c555944e2 Merge branch 'ci' of https://github.com/FH-Complete/FHC-Core into ci 2016-06-15 08:12:23 +02:00
Stefan Puraner 2aa8cff74d added parse data method to model 2016-06-15 08:10:15 +02:00
paolo 3df35d0ed5 - Added method getOnlyKontakt to controller Kontakt
- Added method getAkten to the controller Akte
2016-06-14 15:26:51 +02:00
paolo a8b7be6ad5 - Added controller CheckUserAuth to authenticate the end user
- FHC_Auth now extends directly authentication
2016-06-14 15:19:34 +02:00
paolo fadb2fb792 Merge origin/ci into ci 2016-06-10 18:11:17 +02:00