Commit Graph

76 Commits

Author SHA1 Message Date
Paolo d4c7f1f18d Merge branch 'master' into cleanci 2019-04-30 13:14:37 +02:00
Paolo 3b4012798f Fixed some comments typo 2019-04-30 13:13:34 +02:00
Paolo 699aca74d1 - Changed helper and language autoload
- Changed language config
- Removed never used constants
- Changed rest_language in rest config file
- Adapted models that where extending FHC_Model
- Adapted code to load hlp_return_object
- Adapted code to use exit status codes constants
2019-04-25 12:09:31 +02:00
Paolo 2d7cc09d02 - Added new model CL/Messages_model.php
- Moved logic from controllers system/Messages and ViewMessage to CL/Messages_model
- Better code
- MessageLib and PersonLogLib methods do not use anymore show_error and return success/error object
- helpers/hlp_message_helper: hasData function changed
2019-02-25 15:23:31 +01:00
Paolo e93ee71466 Removed not implemented method 2019-02-15 15:34:48 +01:00
Paolo a913482ef4 - Added private method _replaceKeys to controller system/Messages.php
- Fixed replacement of keys in the message vars array
2019-02-15 15:30:04 +01:00
Paolo fad7894ec8 Halfway commit 2019-02-08 17:20:36 +01:00
Paolo 91fbabde6f - Added new directory application/views/system/messages/
- Moved application/views/system/message* to application/views/system/messages/
- Adapted code to use those views with the new path
- Fixed function getCode in public/js/AjaxLib.js
- In public/js/messaging/messageWrite.js is now used AjaxLib.js
- Changed method parseMessageText in MessageLib.php to replace the keys of the data parameter
- Removed function write from application/controllers/system/Phrases.php
- Adapted code in application/controllers/system/Messages.php to use the changed method parseMessageText in MessageLib.php and path of the moved views
2019-02-06 18:18:57 +01:00
Paolo 2bf2cac383 - Added new method writeReply to FASMessages
- Moved logic from Messages and MessageLib to MessageLib\
- Better code in views/system/messageWrite.php
- Adapted content/messages.js.php to use writeReply
2019-02-01 12:04:20 +01:00
Paolo 306da46c80 - Removed messagelink from controller system/infocenter/InfoCenter.php
- Improved MessageLib
- Added method getMessageVarsPerson to MessageLib
- Moved JS from views/system/messageWrite.php to public/js/messaging/messageWrite.js
- Added new controller controllers/system/FASMessages.php
- Adapted content/fasoverlay.js.php and content/messages.js.php to use FASMessages
2019-01-25 17:16:57 +01:00
alex a28df53718 Infocenter changes
- new button for Freigabe zum Reihungstest, sending message to bewerber when freigabe
- button Freigabe for Studiengang with Statusgrund
- Ausbildungssemester can be saved
- Using Vorlagen for Freigabe Mail to assistance and message to bewerber
- Added Nation of address at details page
- Scroll to top button on details page
- moved messageList js to own file
2018-11-30 16:48:28 +01:00
Paolo d08eb75b5a Adapted MessageLib, PhrasesLib and UDFLib to use the function getUserLanguage from language_helper 2018-07-05 12:13:02 +02:00
Paolo 25e66bf9dd - Added function isEmptyString to fhc_helper
- Added function isEmptyArray to fhc_helper
- Adapted the code in application/* to use as much as possible this two new functions
- Removed the php function empty almost everywhere
2018-06-27 15:06:04 +02:00
Paolo d04b0450da - AuthLib is loaded only in fhcauth_helper, PermissionLib and REST_Controller
- Removed all the NOT usefull loads of helpers and libraries
- Fixed undefined index in controllers/system/UDF and model system/UDF_model
- APIv1_Controller now loads helper fhcauth
- FHC_Controller now loads ithe fhc and session helpers too
- Added/Fixed comments
- PermissionLib does NOT use anymore the getAuthUID function from the fhcauth helper, now relies on AuthLib directly
- REST_Controller loads directly the AuthLib when is needed
2018-06-27 13:12:46 +02:00
Paolo d4e6027c7c Removed load->helper->('message') from libs 2018-06-27 11:26:42 +02:00
Andreas Österreicher 3c7336a910 Infomails über neue Messages werden jetzt immer mit System-User versandt 2018-03-06 16:27:22 +01:00
Andreas Österreicher 34bc23b284 Bugfix für Text-Messages beim Versand von einzelnen Mails 2018-02-26 17:12:32 +01:00
Andreas Österreicher 0a8285ed03 Messaging Mail Template can be overwritten in the Database 2018-02-21 23:53:50 +01:00
Andreas Österreicher 45485ee02a Fixed Bug where wrong Messages are sent if they are not sent immediately
Messages are only sent with the Employee-Adress of the Sender instead of
the private Address. If the Sender is not an Employee, the Messages are
sent with the System-EMail
2018-02-21 23:27:24 +01:00
Andreas Österreicher 7c2445dc89 Messages im FAS werden nach Datum sortiert anstatt nach Betreff 2018-02-20 18:42:23 +01:00
Andreas Österreicher bd2318bd38 MailDebug now also "works" with invalid Mail
Fixed Typo and Intendation
2018-02-20 17:17:56 +01:00
alex 590021a8e2 fixed typo 2018-02-02 16:34:14 +01:00
Paolo 0bc0a09bf4 - Removed file system execute permission for all files (no directories)
- application/extensions file system permission now is 775
- application/logs file system permission now is 775
- Added extensions directory in application/: config, controllers, helpers, hooks, libraries, models, views and widgets
- Added view views/extensions/manage.php
- Added controller controllers/system/extensions/Manager.php
- Added library ExtensionsLib to manage extensions
- Added model models/system/Extensions_model.php
- Moved code related to print out info from MigrationLib to EPrintfLib
2017-11-13 10:45:49 +01:00
Andreas Österreicher 5cf943d586 Corrected wrong default language constant 2017-10-29 17:11:54 +01:00
Paolo 014f063391 Fixed wrong comments in MessageLib 2017-10-18 15:04:52 +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 3e74029552 If the recipient is an employee and has a UID then send the email to UID@Domain 2017-09-07 13:43:56 +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 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