Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
core\update\remote_info Class Reference

Thin wrapper for data structures returned by api::get_plugin_info(). More...

Inheritance diagram for core\update\remote_info:

Detailed Description

Thin wrapper for data structures returned by api::get_plugin_info().

Given that the API client returns instances of this class instead of pure objects allows us to have proper type hinting / declarations in method signatures. The validation of the data structure is happening in the API client so the rest of the code can simply rely on the class type.

We extend the stdClass explicitly so that it can be eventually used in methods signatures, too (not recommended).

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

The documentation for this class was generated from the following file: