Commit Graph

24 Commits

Author SHA1 Message Date
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 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
Paolo 537f6a5c49 Added order by version DESC in method loadVorlagetext of VorlageLib 2018-03-29 14:44:23 +02:00
Andreas Österreicher 0a8285ed03 Messaging Mail Template can be overwritten in the Database 2018-02-21 23:53:50 +01: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
bison-paolo cfc34e91e1 VorlageLib->loadVorlagetext now is searching for a parent template
without the orgform parameter
2017-01-24 15:43:36 +01:00
bison-paolo f13985620c Bug fix in method loadVorlagetext 2016-11-10 16:12:54 +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 3588047989 All the libraries, when it is required, now are using the message helper 2016-10-07 14:13:58 +02:00
kindlm ab0dcfdcff Berücksichtigung des Aktiv-Attributs bei Vorlagen 2016-09-19 15:01:26 +02:00
oesi edb60ef17b - Fixed Fallback if Vorlage doesnt exist
- Added Additional Parameters to Message
2016-08-19 11:31:30 +02:00
bison 1dde2c5cb2 Fixed method loadVorlagetext, now it take care about all the parameters 2016-08-17 16:24:42 +02:00
bison b2c8d1b2de - VorlageLib fix
- MessageLib better message error
2016-08-17 11:59:43 +02:00
Andreas Moik 4ad5de915a added page to link documents with templates 2016-08-08 11:14:22 +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 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 3d45527a5d TemplateParser 2016-06-18 09:11:00 +02:00
Paminger 7aea047537 Templates 2016-06-17 23:09:50 +02:00
Paminger 4c58b95728 Libs and Vorlagen 2016-06-17 00:12:46 +02:00