Commit Graph

33 Commits

Author SHA1 Message Date
Paolo d9b80b790d Removed permission system from models 2018-03-29 12:13:08 +02:00
alex 20455d264c added message table, added tinymce editor to header and messageList 2018-02-05 15:00:54 +01:00
alex b9e7dc38cc enabled sending messages with person ids as receivers, person data can be retrieved by uid, link in infocenter details to send message 2018-02-01 10:26:37 +01:00
Paolo 4f818ccb42 - Changed method getMessagesByPerson Message_model to use the given oe_kurzbz as root of the organisation unit tree
- Changed methods getStudiengangBewerbung and getAppliedStudiengangFromNowOE of model Message_model to use the given oe_kurzbz as root of the organisation unit tree
- Changed methods getMessagesByUID, getCountUnreadMessages and getMessagesByPerson of model Recipient_model to use the given oe_kurzbz as root of the organisation unit tree
2017-10-03 11:31:02 +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 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 d8cd786079 - application/core/* -> CS compliant
- 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)
2017-08-22 16:24:51 +02:00
Paolo de0ed58ba6 - Removed method index, inbox, view and outbox from controller
system/Messages
- Removed views messageReply, messageView, messages, messagesInbox and
messagesOutbox
- Removed menu item "Nachrichten" from VileSci->Admin
- Controller system/Messages: method write also works for replying to a
message
- View system/messageWrite also worki for replying to a message
- Updated content/messages.js.php to call the system/Messages controller
with the new parameters
2017-04-11 12:03:15 +02:00
bison-paolo e7be37708d - Bug fix in MessageLib
- Now is possible to send a message to more recipients from FAS
- Can be used the variables substitution from FAS
2017-03-02 15:47:17 +01:00
bison-paolo 5087826891 - phpC(d)I
- Renamed method chkRights to _isEntitled in model DB_Model
- Updated models where it was needed
2016-10-20 16:37:52 +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 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 124535cbc7 Fix 2016-09-29 10:39:12 +02:00
bison-paolo 3009a03eac Task #404: GUI zum Schreiben von Nachrichten im FAS: 2nd part 2016-09-26 12:10:31 +02:00
bison-paolo 1fe6ec5ccc Task #404: GUI zum Schreiben von Nachrichten im FAS 2016-09-23 17:38:02 +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 7b99d7ead3 - MessageLib fix: if sending an email fails inside of method sendMessageVorlage,
it will no longer rolls back the database
- Added parameter all in method getMessagesByPerson of model Message_model
2016-08-25 09:52:00 +02:00
bison 011dbb980f Changes in method getMessagesByPerson of model Message_model 2016-08-23 14:28:43 +02:00
paolo 11960628c0 Fixed method getMessagesByToken 2016-07-27 14:16:10 +02:00
paolo cec2bb1a27 - Added field status in the primary key array of model MsgStatus_model
- Changes in the logic of the messaging system, now every message status
is a new entry in the table tbl_msg_status
2016-07-27 13:27:55 +02:00
paolo 79230cd85d Added function getBerechtigungKurzbz to model FHC_Model.
Using this function will be avoided the notice "Undefined index".
All models have been adapted.
2016-07-07 16:42:04 +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 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 3fdf54c1d1 - Added method sendMessageVorlage to MessageLib
- Fixed method loadVorlagetext in VorlageLib
- Changed query in method getMessagesByPerson of Message_model
2016-06-23 15:42:43 +02:00
Paminger 4f14e7fa92 Messages Inbox Outbox 2016-06-23 10:28:26 +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
Paminger f2fdc62b44 BugFix 2016-06-22 08:18:53 +02:00
Paminger 70e83b6e18 Messages 2016-06-22 08:11:04 +02:00
Paminger dbe19fafb5 Messages 2016-06-21 11:27:36 +02:00
Paminger 9ed42794a7 Recover fhcdb_helper 2016-06-16 11:40:49 +02:00
Paminger eb712f4242 Merge branch 'ci' of https://github.com/FH-Complete/FHC-Core into ci
Conflicts:
	application/core/FHC_Model.php
2016-06-10 15:41:09 +02:00
Paminger e624540c16 Message 2016-05-10 14:12:33 +02:00
Paminger 6836c3608d Models 2016-05-04 07:05:23 +02:00