atk4 / ui

Robust and easy to use PHP Framework for Web Apps
https://atk4-ui.readthedocs.io
MIT License
440 stars 105 forks source link

Allow step executor args step to use a data model #1681

Open ibelar opened 2 years ago

ibelar commented 2 years ago

Make it possible to use a Data model in order to setup an action arguments.

Advantage:

mvorisek commented 1 year ago

Atk4/data UA must be improved to validate the $args againts the $ua->args definition (which needs also an improved phpdoc).

https://github.com/atk4/data/blob/06dc74732a/src/Model/UserAction.php#L144

Then these validations:

can be removed which are even wrong, as isset() will fail with null value like empty date.