Skip to content

Conversation

@skerbis
Copy link
Contributor

@skerbis skerbis commented Oct 29, 2025

Dieser Pull Request ergänzt *YORM um die Möglichkeit, bestimmte Felder von automatisch generierten Formularen auszuschließen.

So muss nicht immer eine Model-Class erstellt oder ein EP bemüht werden, möchte man adhoc mal ein Feld ausblenden.

  • Hinzugefügt: Methoden setExcludeFields() und getExcludedFields() in rex_yform_manager_dataset
  • Formular-Generierungslogik aktualisiert, um ausgeschlossene Felder zu überspringen
  • Deutsche Dokumentation hinzugefügt
  • Test hinzugefügt
Datei Beschreibung
lib/manager/dataset.php Implementiert die Feld-Ausschluss-Funktionalität mit privater Property, Setter- und Getter-Methoden sowie angepasster Formularlogik
tests/rex_yform_yorm_test.php Fügt Testabdeckung für die neue Ausschlussfunktion hinzu
docs/04_yorm.md Enthält deutsche Dokumentation mit Anwendungsbeispielen
CHANGELOG.md Dokumentiert das neue Feature in Version 5.0.2

Copilot AI and others added 6 commits October 29, 2025 14:19
Co-authored-by: skerbis <791247+skerbis@users.noreply.github.com>
Co-authored-by: skerbis <791247+skerbis@users.noreply.github.com>
Co-authored-by: skerbis <791247+skerbis@users.noreply.github.com>
Co-authored-by: skerbis <791247+skerbis@users.noreply.github.com>
Add field exclusion for YORM-generated forms
Copilot AI review requested due to automatic review settings October 29, 2025 15:02
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds functionality to exclude specific fields from generated YForm forms in the YORM (YForm ORM) system. This is useful for scenarios where certain fields should not be displayed or editable in a form, such as user profile fields that should remain static or auto-managed fields.

Key changes:

  • Added setExcludeFields() and getExcludedFields() methods to rex_yform_manager_dataset class
  • Modified createForm() to skip excluded fields when building the form
  • Added comprehensive test coverage for the field exclusion functionality

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
lib/manager/dataset.php Implements field exclusion functionality with private property, getter/setter methods, and form creation logic
tests/rex_yform_yorm_test.php Adds test cases to verify excluded fields are stored correctly and not present in generated forms
docs/04_yorm.md Documents the new feature with usage examples in German
CHANGELOG.md Records the new feature in version 5.0.2 changelog entry

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

This test class provides unit tests for the YForm manager's table and dataset functionalities, including setup, creation, updating, and deletion of tables and datasets.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant