Commit Graph

48 Commits

Author SHA1 Message Date
Paolo 7312a4afe1 Tast #1342: Messages: root-url of link to ViewMsgByToken-Seite in Info-Email configurable 2017-05-08 14:17:35 +02:00
Gerald Raab 70a1b16bd8 Introduced sender-alias for system-mail-sender 2017-04-04 11:19:46 +02:00
Paolo d9781e99c8 Comments correction 2017-03-31 10:53:27 +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 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 ebc13b77bb Changed the logic to send messages via email 2016-12-14 15:13:20 +01:00
bison-paolo 4b16accd33 Added new parameter multiPartMime to method postMessageVorlage of
controller Message
2016-12-14 11:00:49 +01:00
Andreas Moik c4ed2d05f1 - removed forgotten break
- restored feature 'delete person'
2016-11-23 16:26:58 +01: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 ea920d11d4 - Added private method _saveMessage in library MessageLib
- Bug fixed in model Studiensemester_model
- Config property send_immediately set to false, default value
2016-10-14 11:32:17 +02:00
bison-paolo 9effd11fcd Moved the assistent function name in the message config file 2016-10-13 17:57:19 +02:00
bison-paolo 9df9ec8f41 - MessageLib: Better error messages when sending messages
- Added a new constant for the messaging system
- Added a new phrase for the messaging system
2016-10-12 13:45:06 +02:00
bison-paolo 3588047989 All the libraries, when it is required, now are using the message helper 2016-10-07 14:13:58 +02:00
bison-paolo 1fed18dd9b - Added Redirect controller to redirect from the link present in the email to
the page for viewing the message
2016-10-07 12:00:59 +02:00
bison-paolo bfaf901550 - Added new template for plain text email
- Renamed template for html email mail.php -> mailHTML.php
- Changed method getMessageByToken of Recipient_model for getting only the last message by token
- Changed method getMessages of Recipient_model for getting event the token
- Changed method send of library MailLib to add the possibility to send an alternative plain text
body for a html mail
- Changed library MessageLib to add the possibility to send emails in html/text format to inform
the users about new messages
- Added method toHTML to controller Messages
- Added new configuration entries in message.php
- Added new view messageHTML.php
2016-10-06 16:27:04 +02:00
bison-paolo 5ab5b291b3 MessageLib -> sendMessageVorlage:
- If no sender_id is specified the system default person_id will be used
- If the receiver_id is not given and the oe_kurzbz is set, sends the message
to every receiver that is enabled to receive messages for that organization unit.
2016-10-05 11:00:12 +02:00
bison-paolo 1feec909cb MessageLib -> sendMessage: if no sender_id is specified the system default person_id will be used 2016-10-04 18:19:39 +02:00
bison-paolo 863d6af4eb - Method sendMessage of library MessageLib now if the receiver_id is not given and
the oe_kurzbz is set, sends the message to every receiver that is enabled to receive
messages for that organization unit.
- Added new costants for the messaging system
- Added new phrases for the messaging system
2016-10-04 15:49:55 +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-paolo 7281a15e42 MessageLib changes 2016-09-21 15:00:41 +02:00
bison 9f919e6e7b - Added new parameter $email_from_system to MailJob controller
- Added library MailLib to manage the sending of the email
- Changed configuration file mail.php
- Changed configuration file message.php
- Changed library MessageLib to get a better separation between the messaging
system and sending e-mail
2016-09-06 11:10:48 +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 d6664e74c5 - Added element email_send_immediately in configuration array in mail.php
- Renamed sendOne to sendEmail
- Added new method sendOne
- Added $message_id parameter to method getMessages of model Recipient_model
2016-08-24 13:38:47 +02:00
bison b2c8d1b2de - VorlageLib fix
- MessageLib better message error
2016-08-17 11:59:43 +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 d3bc72539a - message_helper.php fixed
- Changes in the logic of sending email
2016-07-26 18:19:13 +02:00
paolo 150a7863d6 Integrated LogLib into MessageLib 2016-07-25 11:07:06 +02:00
paolo ec4b13f100 Integrated a system to send messages via email based on CI 2016-07-22 16:09:04 +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 483d133fc1 Added parameter "sprache" to method postMessageVorlage of controller Message. It's required. 2016-07-12 11:27:58 +02:00
paolo 925bb10efa Better error messages when sending a message with a template 2016-07-06 12:05:10 +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
Paminger 9a44c818ea FHC Helper 2016-06-29 08:41:02 +02:00
Paminger b4fdd11686 BugFix 2016-06-29 08:00:29 +02:00
paolo a68dfa7ba2 Added method postChangeStatus to controller Message 2016-06-28 18:13:20 +02:00
Paminger e21b2f6233 Seeds 2016-06-28 12:34:12 +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
paolo 226d1652ef Merge 2016-06-23 10:34:42 +02:00
Paminger f2fdc62b44 BugFix 2016-06-22 08:18:53 +02:00
Paminger 49ebc3945b Merge branch 'ci' of https://github.com/FH-Complete/FHC-Core into ci 2016-06-22 08:11:59 +02:00
Paminger 70e83b6e18 Messages 2016-06-22 08:11:04 +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
Paminger dbe19fafb5 Messages 2016-06-21 11:27:36 +02:00
Paminger 4c58b95728 Libs and Vorlagen 2016-06-17 00:12:46 +02:00