Commit Graph

196 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 50b26ce762 Changed method getOERoot of MessageToken_model and method redirectByToken of controller to retrive the correct root of the organisation unit tree 2017-11-16 16:41:20 +01:00
Paolo 8ca79b6657 Changed method getOERoot of MessageToken_model to retrive the correct root of the organisation unit tree 2017-11-16 16:27:14 +01:00
Paolo 1f6a0fc386 Messages: Bug-Report von STP: Berechtigung
Now the controller Redirect/redirectByToken doesn't use anymore the OrganisationseinheitLib,
therefore authentication is not required anymore
2017-11-14 15:01:36 +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
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 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 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 6fca6e45eb - Added optional parameter oe_kurzbz to method getStudiengangBewerbung of controller organisation/Studiengang2
- Added optional parameter oe_kurzbz to method getStudiengangBewerbung of model organisation/Studiengang_model
2017-09-20 10:41: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 5ff875917c Added method getAppliedStudiengangFromNowOE to get all the applied study courses for one person
- Starting from the current study semester
- For an organisation unit present in the organisation units tree that has as root the given parameter
2017-09-15 14:15:04 +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 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 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 c351ef781a Changed method getAppliedStudiengangFromNow in Studiengang_model.
Now also takes into consideration the current semester
2017-08-08 11:17:33 +02:00
Paolo a56412d687 Merge branch 'udf' 2017-08-07 16:44:03 +02:00
Paolo 35e8df3b22 Added method getAppliedStudiengangFromNow to controller Studiengang.
This method can retrive all the applied studiengang for a person from
the current studiensemester
2017-08-07 15:15:08 +02:00
Paolo f5d3f20ec7 Merge branch 'master' into udf 2017-08-03 15:37:37 +02:00
Paolo 68189bb7a5 - If required == false and a null value is given for a UDF, then no
validation is performed
- No validation is performed for checkboxes
- Better workaround in UDF_Model
2017-08-02 17:02:39 +02:00
Andreas Oesterreicher 42960ffe20 Moodle-Integration aus FHComplete Core entfernt und in eigenes Addon
ausgelagert.
Support für Moodle 1.9 entfernt
2017-08-02 14:05:31 +02:00
Paolo 65be806e91 Merge branch 'master' into udf 2017-08-01 18:31:30 +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
alex afd1667645 GUI für Studiensemester und Studienjahr hinzugefügt 2017-08-01 14:50:19 +02:00
Paolo 59045e1136 Added private method _fillMissingChkboxUDF to UDF_model.
It checks if UDF checkboxes are NOT posted and sets theirs values to
false
2017-07-28 18:36:08 +02:00
Paolo 6573d46525 Merge branch 'master' into udf 2017-07-21 15:08:50 +02:00
Andreas Oesterreicher 4603befefc Added API calls to get Prestudents according to its status 2017-07-18 17:19:53 +02:00
Paolo b9c846f18f FAS UDF tab 2017-07-18 12:48:47 +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
Stefan Puraner 1a9d6de487 changed api method to return status 'Interessent' 2017-06-22 08:33:25 +02:00
Stefan Puraner c026aecfbe changed api method to return status 'Interessent' 2017-06-22 08:29:51 +02:00
Paolo 45b4c84764 Task #1355:
- If the sender of a message is an admin: show all the vorlage with
mimetype = text/html
 - If the sender of a message is NOT an admin: show all the
vorlage that belongs to the organisation units of the user
and the parents of those organisation units until the root
of the organisation unit tree

Changes:
 - Added method isAdminByPersonId to model Benutzerrolle_model
 - Added method _getAllHTMLVorlage to Vorlage_widget
 - Added method _getUserVorlage to Vorlage_widget
2017-06-06 15:21:22 +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 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 11d3d7d7c0 1st release 2017-04-20 18:28:20 +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
Paolo 811f5d395d - Escaped all the parameters concatenated to a query
- Added parameter titel to Studiengang2->getAppliedStudiengang
- Added parameter titel to Studiengang_model->getAppliedStudiengang
2017-04-06 11:13:16 +02:00
Paolo a2d2296f33 - Added method addGroupBy to DB_Model
- Changed the query present in method getPrestudentMultiAssign of Prestudent_model
2017-04-05 16:58:23 +02:00
Paolo 4984b69366 - DB_Model: workaround for CI_DB_driver->_list_columns (if there are two
tables with the same name in two different schemas, it returns a list of
fields from the two tables)
- DB_Model: changed loadTree to use the new method _list_columns
- DB_Model: added the method getSchemaAndTable
- Updated Studiengang_model to specify the schema when using the
loadTree method
- Studiengang_model: removed the titel parameter from method getAppliedStudiengang
- Studiengang2 controller removed the titel parameter from method getAppliedStudiengang
2017-04-04 18:27:31 +02:00
Paolo 559b1b4cdf - ViewMessage: checks if the receiver is an employee or not. If an
employee then hides the reply link
- Added isEmployee method to MessageToken_model
2017-03-30 17:44:43 +02:00
Paolo d08de4b22b Merge branch 'master' of https://github.com/FH-Complete/FHC-Core
Also the data of the message sender are not taken anymore via
the Person_model, but via the MessageToken_model, to avoid that
the login will be prompted
2017-03-30 16:43:35 +02:00
Paolo a0eb6b0eba - Added method setReadMessageStatusByToken to MessageToken_model
- Now the method toHTML of the controller ViewMessage is calling also
the method setReadMessageStatusByToken of model MessageToken_model
2017-03-30 16:27:14 +02:00
Gerald Raab 3ecb3907cf MsgView styled, display Name of Sender 2017-03-30 13:56:51 +02:00
Paolo 9dc9a712c4 - Moved file to manage vorlage into subdir vorlage
- Updated sprache, orgform, organisationseinheit and vorlage to the new
widget
- Changed method getRecursiveList of model Organisationseinheit_model
- Updated vilesci_menu_main.inc.php
- Changed method loadDropDownView of WidgetLib: if a selected value is
not given, by default it is set as HTML_DEFAULT_VALUE
- Updated all the affectd files
2017-03-29 16:57:29 +02:00
Paolo 1f65f7737c - Splitted Usersfilters_widget in:
- Aufnahmegruppe_widget
	- Reihungstest_widget
	- Studiengang_widget
	- Studiensemester_widget
	- Stufe_widget
- Renamed /system/Users controller to system/aufnahme/PrestudentMultiAssign
- Added method getPrestudentMultiAssign to Prestudent_model
- Changed WidgetLib to allow to set the name and the id html attributes
of a widget
2017-03-24 16:39:50 +01:00
Paolo e4151e0905 First version of the VileSci interface that allows easily to add more prestudent
to a group or change their stufe
2017-03-17 11:54:02 +01:00