Dear developers,
I have recently opened a PR (#3923 https://github.com/ILIAS-eLearning/ILIAS/pull/3923) which resolves an issue where ilTableGUI commands weren't considered by ilCtrl anymore. Furthermore this PR introduces a new trait called `ilTableCommandHelper` which is intended as a replacement for direct $_POST access. Up till now ilCtrl has made some magic $_POST manipulations when:
a) a table used the select-all option, where the bottom value was set equal to the top one, so it didn't matter which key you used. Or
b) a table used multi-item-selection-buttons, where the correct submitted value was determined so it could just be accessed by the defined post variable name.
Now because these post variables cannot just be retrieved by $_POST without these manipulations I created methods in the new trait that deliver sort of fake $_POST arrays. They can be used the same way as before, which means instead of `$_POST["cmd_select_all"]` you'd have to call a method of this trait now: `$this->getSelectAllPostArray()["cmd_select_all"]`.
I have already merged this PR into trunk, so that everybody has enough time left until Thursday, when direct $_POST access should not be used anymore anyways.
Kind regards
--*Thibeau Fuhrer* Junior Software Developer
Support: +41 31 972 52 30support@sr.solutions *sr solutions ag* Farbweg 9 3400 Burgdorf Schweiz
Tel: +41 31 972 52 22https://sr.solutions/