Andrew Nicols
024e36be17
MDL-81634 core: Fix all implicitly defined nullables
...
Note: This does not impact third-party libraries.
2024-08-02 14:11:12 +08:00
Marina Glancy
8fc1486d36
MDL-77164 various: fix incorrect phpdocs
2023-04-13 11:35:06 +01:00
Paul Holden
121f5b6300
MDL-76221 core: method to filter by defined properties of persistent.
2022-12-29 14:02:58 +00:00
Paul Holden
6d5c0190e2
MDL-74192 core: add strictness to persistent get_record method.
...
Allow developer to specify the given record MUST_EXIST, and the
method to throw the underlying database exception.
2022-05-19 15:21:39 +01:00
Marina Glancy
24db1f29fe
MDL-73420 core: make static cache compatible with PHP8.1
2021-12-20 17:07:05 +01:00
Andrew Nicols
73ca68d3d5
Merge branch 'MDL-72779' of https://github.com/paulholden/moodle
2021-10-29 10:16:56 +08:00
Paul Holden
310bf46963
MDL-72779 core: add set_many helper method to persistent class.
2021-10-13 14:44:23 +01:00
Paul Holden
de2b0565a7
MDL-71086 core: load only those properties defined within persistent.
2021-10-11 09:09:27 +01:00
David Matamoros
78735a72bc
MDL-72329 core: Persistent method get needs to return correct type
2021-09-24 08:45:08 +02:00
Michael Aherne
bf93e13abe
MDL-65096 docs: Use static return type in persistent
2019-03-18 10:30:48 +00:00
Damyon Wiese
ac40d8b589
MDL-57596 forms: CLEANHTML in persistent forms
...
Add special handling for text fields with the CLEANHTML type. This should
be used when students and teachers can edit the same field (you can't trust those students).
Applies cleaning on submitted data, and on data stored in the DB before it is put back in an editing form.
2017-03-10 18:04:48 +00:00
Eric Merrill
75e74407a3
MDL-57859 persistent: Add a combined create/update call
2017-02-13 22:33:42 -05:00
Damyon Wiese
6b206c5309
MDL-57273 persistent: Dont allow set and get for helpers
...
Helper methods (ie custom methods on a persistent) should not be callable via set() or get() even
if they start with set_ or get_. They are not the same as custom getters and setters for real persistent
properties.
2017-01-24 15:39:53 +08:00
Damyon Wiese
d5818626c0
MDL-57273 persistent: Improved style
...
Use \blah::class instead of '\\blah' in define_class functions.
Allow chaining of setters by returning $this.
2017-01-23 11:58:59 +08:00
Damyon Wiese
599acbe776
MDL-57273 persistent: protected custom getters
...
(and setters).
2017-01-20 12:56:19 +08:00
Damyon Wiese
9c91a9593d
MDL-57273 core: Remove magic setters and getters
...
Remove the magic getters and setters from persistent. They are deprecated only in the persistent
class for competencies.
2017-01-20 12:56:19 +08:00
Frederic Massart
2198e0e94a
MDL-57273 core: Migrating persistent from core_competency into core
2017-01-20 12:56:18 +08:00