Commit Graph

179 Commits

Author SHA1 Message Date
Paolo ee3998f62e - Changed system/dbupdate_3.3.php to create table system.tbl_filters and what its needed
- Added model system/Filters_model to manage system.tbl_filters
- Removed method execQuery from model system/UDF_model
- Added property executedQueryMetaData to DB_Model
- Added property executedQueryListFields to DB_Model
- Added method getExecutedQueryListFields to DB_Model
- Added method getExecutedQueryMetaData to DB_Model
- Added method execReadOnlyQuery to DB_Model to execute read only queries from outside a model
- Changed DB_Model method _toPhp to store infos about an executed query into properties executedQueryMetaData and executedQueryListFields
- Updated library UDFLib to use execReadOnlyQuery
- Added widget FilterWidget to render and manage a filter into VileSci
- Added views widgets/filter/selectFields, widgets/filter/selectFilters and widgets/filter/tableDataset used by FilterWidget
2017-11-22 12:08:54 +01:00
Paolo b28df3054a Accidentally removed an usefull var_dump 2017-11-13 17:30:50 +01:00
Paolo a14c924f8c Added comments 2017-11-13 17:25:25 +01:00
Paolo d512f52e1f - Bugfix: check if parameter dependencies is present in extension.json
- Bugfix: if it is a new installation all the SQLs will be executed, otherwise all the SQLs from version current + 1 will be executed
2017-11-13 13:36:24 +01:00
Paolo 0735880abb Bugfix: now removes correctly the symlinks in extensions directories 2017-11-13 13:11:53 +01:00
Paolo 89b9f5933f - Added 'system.tbl_extensions' => 'system/extensions' to config/fhcomplete.php
- Added directory application/tmp/ with 775 as file system rights
- Changed ExtensionsLib to use application/tmp/ as temp directory
2017-11-13 13:00:17 +01:00
Paolo 6f866ede38 Fixed paths 2017-11-13 11:13:12 +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
Andreas Österreicher 39392d7c18 - Added Cronjob for correcting Studienplan in Status
- Modified persmission lib to not check persmissions on CLI
- Modified Cronjobs to be able to start CI Jobs
2017-10-24 11:13:59 +02:00
Paolo 014f063391 Fixed wrong comments in MessageLib 2017-10-18 15:04:52 +02:00
Paolo ba13f1147b Method _getFinalUserBasicDataByPersonID of AuthLib now returns only the person_id 2017-09-27 12:22:34 +02:00
Paolo ff233e3f16 Added AuthLib 2017-09-25 17:16:52 +02:00
Paolo 3cf42c4545 - Moved all the code related to authentication to AuthLib
- Changed configuration files autoload.php and rest.php to use AuthLib
- Added new method getCheckUserAuth to controller CheckUserAuth.php
- Removed libraries/FHC_Auth.php
- Removed models/CheckUserAuth_model.php
- Removed include/AddonAuthentication.php
2017-09-25 17:11:44 +02:00
Paolo 35e35b4110 - Now UDFLib->_popUDFParameters returns the result without storing it in UDFs property
- UDFs property has been removed
2017-09-20 17:58:46 +02:00
Paolo a456c0838d - Added property UDFs to UDFLib
- UDFLib constructor initialize UDFs property as an empty array
2017-09-20 10:55:20 +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 f7153aa6f5 - Changed config entry addons_aufnahme_url in fhcomplete.php. Now it's an array having an entry for each organisation unit root
- Changed redirectByToken method in controllers/Redirect, now:
	- Loads the root of the organisation unit tree using the oe_kurzbz present in the message, loaded using a token
	- Redirect to the related aufnahme using the organisation unit previously found
- Changed method send in system/Messages, now retrives the oe_kurzbz of the recipients/prestudents to store these oe_kurzbz in the table tbl_msg_message (used by FAS)
- Added method getRoot to library OrganisationseinheitLib to retrive the root of an organisation unit by the given oe_kurzbz
- Added method getOrganisationunits to model crm/Prestudent_model, retrives the oe_kurzbz using the given prestudent/s id/s
- Added some comments here and there
2017-09-19 17:34:00 +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 72b3e9adc1 - Replaced DEFAULT_LEHREINHEIT_SPRACHE with DEFAULT_LANGUAGE in UDFLib
- Method _setAttributesWithPhrases now sets by default all the attributes to null
- Method _setValidationAttributes now sets also MIN_LENGTH and MAX_LENGTH attributes
2017-08-28 12:42:19 +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 b50aab2d33 - Moved all code related to UDF from DB_Model to UDFLib
- Changed method getUDFs in DB_Model
- Removed method getUDF
- Moved method _getUDFsDefinitions to UDF_model and renamed to getUDFsDefinitions
- Updated model UDF_model
- Updated controller system/UDF
- Updated DB_Model to be more CS compliant
2017-08-18 15:50:59 +02:00
Paolo 1a2fce8d1c - Moved property $htmlParameters from HTMLWidget to DropdownWidget
- Moved all the UDF related code from UDFWidget to UDFLib
- UDFWidget is now using UDFLib
2017-08-17 16:33:45 +02:00
Paolo e4160088e8 - Added headers where they were missing
- Added comments where needed
- Beautified the code where needed, more readable and more compliant to CS
- loadResource function in helper fhc_helper.php is not using anymore CI
- Moved all constants from UDFWidget to UDFLib
- Added constant SORT to UDFLib
- Renamed constant REGEX_LANGUAGE to FE_REGEX_LANGUAGE in UDFLib
- Better formatting and indentation of the code of WidgetLib (more compliant to CS)
- Added missing validation attributes to HTML widgets
- Added constant HTML_DEFAULT_VALUE to CheckboxWidget
- Unset parameter multiple in DropdownWidget constructor
- Changed value of constant REQUIRED in widget HTMLWidget
- Added protected property $htmlParameters to widget HTMLWidget
  (it works as alias to $this->_args[HTMLWidget::HTML_ARG_NAME] -> better code)
- Replaced $this->_args[HTMLWidget::HTML_ARG_NAME] with $this->htmlParameters in the widgets
- Changed the CSS class label[udf-required=true]::after to label[required-field=true]::after in widgets.css
- Better use of constants in UDFWidget: constants from HTMLWidget are used only for the HTML parameters,
  while constants from UDFLib are used only for UDF parameters
2017-08-17 11:51:40 +02:00
Paolo f126bca708 - New directory application/widgets/html/ for widgets to render HTML
elements
- All the widgets classes to render HTML elements moved from WidgetLib
to application/widgets/html/
- New directory application/widgets/udf/ for widgets to render UDF
- All the UDF widgets classes moved from WidgetLib to
application/widgets/udf/
- HTMLWidget is now the main class to render HTML widget
- UDFWidget is now the mail class to render UDF
- Removed UDFWidgetTpl
- Added function loadResource to fhc helper
- Changed method widget of WidgetLib (using loadResource)
- Moved UDFWidget method from WidgetLib to UDFLib
- Slimmed down class Widget present in WidgetLib
- Controller system/UDf now uses UDFLib
- View application/views/system/udf.php now uses UDFLib
- Updated udf and html widgets to adapt them to the new libs
2017-08-11 18:41:21 +02:00
Paolo d7d550d53f - Multipledropdown: fixed problem to see and to save more selected
elements
- Dropdown: reset selected element to null
2017-08-03 15:20:32 +02:00
Paolo 66de1e18f8 - Removed /core from URL
- If UDf are not set in DB UDF view will not display them
- Removed placeholder from multiple dropdown widget
- Dropdown widget has null value as placeholder
- Added permission system/udf to checksystem
2017-08-01 18:25:23 +02:00
Paolo 0ff635f5ea - Added Zusatzfelder tab for UDF in FAS, students and employees
- UDF for person and prestudent only
- Added CSS for widgets
- Fixed checkbox
- Improved aesthetics of widgets
2017-07-28 17:25:27 +02:00
Paolo de2c9703de UDF bugfixes 2017-07-18 12:48:20 +02:00
Paolo a530cd22b4 - Bugfix UDF dropdown, wrong check for selected value
- UDF checkbox now is only one value, no multiple checkbox anymore
- Added method saveUDFs to model UDF_model
- Added new constants to resolve json schema parameters
2017-07-06 11:07:43 +02:00
Paolo 9eb2ea854d Merge branch 'master' into udf 2017-06-28 12:07:41 +02:00
Paolo ac438c1b94 Added parameter no_file to API content/Dms/AktenAcceptedDms 2017-06-27 11:32:59 +02:00
Paolo be9fc8121e - Added exit codes for udf validation to constants.php
- Added messages for udf validation to fhc_model_lang
- Added MAX_LENGTH and MIN_LENGTH to UDFWidgetTpl in WidgetLib
- UDF validation second version in DB_Model
2017-06-23 18:54:34 +02:00
Paolo 26c4865c43 - Property bb of PermissionLib is now static and is initialized in the
constructor, to have better performance.
- Method isBerechtigt has been renamed to _isBerechtigt
- Removed logs debug from _isBerechtigt
2017-06-21 14:02:24 +02:00
Paolo 5e3c8d8421 Replaced global constant FCPATH with FHCPATH 2017-06-21 11:30:45 +02:00
Paolo b840352377 - Vorlage widget now works with oe_kurzbz
- Added method getByPersonId to model Benutzerfunktion_model
- Added method treeSearchEntire to library OrganisationseinheitLib
- Added method getOneLevelAlias to model Organisationseinheit_model
2017-05-23 17:00:03 +02:00
Paolo 2286d47b69 Task #1353: First solution, to be refined 2017-05-16 18:52:38 +02:00
Paolo f092867602 2nd preview 2017-05-10 09:54:23 +02:00
Paolo e143aa8815 1st preview 2017-05-09 18:14:18 +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
Paolo 51ccee4d16 8th release 2017-05-08 11:39:21 +02:00
Paolo 6a11cc09cf 7th release 2017-05-05 18:45:28 +02:00
Paolo d7771da74e - Added utility function var_dump_to_error_log to the fhc_helper
- Added method checkAvailability to model Reihungstest_model
- Added method checkAvailability to library ReihungstestLib
- Added a validation for the test in the method insertPersonReihungstest
of the library ReihungstestLib
2017-05-05 11:06:35 +02:00
Paolo dcedac9617 6th release 2017-05-04 15:08:39 +02:00
Paolo 0456c2c059 5th release 2017-05-02 18:55:54 +02:00
Paolo a6a6592db0 4th release 2017-04-28 17:17:31 +02:00
Paolo 0fd34807ca 3rd release 2017-04-27 19:06:36 +02:00
oesi 870f088549 Added Permission Logging in Debug Mode 2017-04-27 09:01:52 +02:00
Paolo ebd892e333 2nd release 2017-04-21 19:03:20 +02:00
Paolo 11d3d7d7c0 1st release 2017-04-20 18:28:20 +02:00