Commit Graph

9 Commits

Author SHA1 Message Date
57ec38d136 MDL-80677 core: Move deprecated attributes to \core\attribute NS
Note: Removing the manual require for the attribute from moodlelib
because the class does not have to exist at time of definition, only
when the Reflection API instantiates an instance in \core\deprecation,
by which point the autoloader is available.
2024-03-11 21:48:32 +08:00
d6112c0bfb MDL-80677 core: Get deprecated item description automatically 2024-03-11 21:28:48 +08:00
a767e0a78c MDL-78311 core: fix host parameter type cleaning by IPv4 address. 2024-01-25 23:36:06 +00:00
79494ac32d MDL-80005 core: Whitespace fix for core/param 2024-01-17 17:00:07 +08:00
6f23ef183d MDL-80005 core: Formally deprecate PARAM_CLEANFILE 2024-01-17 12:19:57 +08:00
b05fc42db9 MDL-80005 core: Emit deprecation notices for params
Most params are formally deprecated here. This was originally planned
for MDL-80042, but I realised that having an emit, and final param is a
very useful option going forward.

This patch also moves the is_deprecated(), and related methods to the
\core\deprecated attribute.
2024-01-17 12:19:45 +08:00
a61658da17 MDL-80005 core: Update coding standards for core\param 2024-01-16 22:54:46 +08:00
d937e01550 MDL-80005 core: Move all param validation methods 2024-01-16 22:54:46 +08:00
0d7d5d2e56 MDL-80005 core: Move clean_param and PARAM definitions
Move these into a new enum object which ensures that all content is
together.
2024-01-16 22:53:55 +08:00