Commit Graph

150 Commits

Author SHA1 Message Date
bison 89744f36f5 - Added parameter available to methods getByStudiengangStudiensemester and
getReihungstestByPersonID of controller Reihungstest
- Added parameter available to method getReihungstestByPersonID of library ReihungstestLib
2016-09-07 15:41:29 +02:00
bison 0b5644d6f1 - Added method getStudiengangBewerbung to controller Studiengang2
- Renamed method loadList to loadTree
- Improved method loadTree
- Added method getStudiengangBewerbung to model Studiengang_model
2016-09-06 15:52:34 +02:00
bison 939ca288fc - Cleaned the controllers by moving the database related code and more complex logic
in the models or libraries
- DmsLib bug fix
- Person_model bug fix
2016-08-31 14:15:39 +02:00
bison 0c912c0122 Bug fix: update person data 2016-08-31 10:39:26 +02:00
bison 46bc8bdb8c Bug fix 2016-08-30 14:48:08 +02:00
bison 2e3e0efb83 Updating data on tbl_person with the same svnr but with a different person_id will generate the following svnr:
<svnr> + "v" + <counter>
2016-08-30 14:22:48 +02:00
bison 3823f7f1d1 Now when inserting a new person with the same svnr, it will be created a new version of the svnr: <svnr> + "v" + <counter> 2016-08-30 13:52:40 +02:00
bison fbed4b2261 - Added new library ReihungstestLib
- Added method isEntitled to FCH_Model
- Cleaned the controllers by moving the database related code in the models or libraries
2016-08-30 12:26:22 +02:00
bison 66de5536ac Moved logic from Dms controller to DmsLib 2016-08-29 13:28:00 +02:00
bison 7e71681d26 - Added method loadList to model DB_model
- Added method getStudienplan to model Studiengang_model
- Changes in method getStudiengangStudienplan of controller Studiengang2
2016-08-26 14:21:04 +02:00
bison 59b5d76e44 - Fixed logic in method postDms of controller Dms, now is it possibile to
insert a new version for a dms
- Fix method getMessagesByPerson of model Message_model, now is not showing messages with status 3
2016-08-25 13:18:11 +02:00
bison 2c86315f42 Method getStudiengangStudienplan is now returning all fields of table tbl_studienplan 2016-08-25 10:29:15 +02:00
bison b83cf14841 Has been wrote the method getStudiengangStudienplan of controller Studiengang2
from the scratch to achieving better performances
2016-08-24 17:12:37 +02:00
bison 5c7d2e9688 Changed method getGemeindeByPlz, added DISTINCT and ORDER BY clauses on column ortschaftsname 2016-08-22 13:37:21 +02:00
bison dd02a5ff0e Added method getCompleteStudiengang to get all data about all Studiengang with better performance.
The methods _getStudienplaene, _getBewerbungstermine and _getReihungstests are complementary.
2016-08-22 11:28:22 +02:00
bison 60681d5402 Added parameter "new" in method postDms of Dms controller 2016-08-19 10:06:36 +02:00
Stefan Puraner 959b01f6a1 fixed delete method 2016-08-17 17:56:06 +02:00
bison f21db9531e - Added new controller RtPerson
- Changed pk in model RtPerson
- Added grants for new sequence in migration script 011_reihungstest
2016-08-17 15:41:07 +02:00
bison d419cc327d - Added method getGemeindeByPlz to controller Gemeinde 2016-08-17 12:10:16 +02:00
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