Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
core\update\info Class Reference

Defines the structure of objects returned by core::update::checker::get_update_info(). More...

Public Member Functions

 __construct ($name, array $info)
 Creates new instance of the class.
 

Public Attributes

string $component
 frankenstyle component name
 
string null $download = null
 optional URL of a ZIP package that can be downloaded and installed
 
string null $downloadmd5 = null
 of self\download is set, then this must be the MD5 hash of the ZIP
 
int null $maturity = null
 optional maturity info, eg MATURITY_STABLE
 
string null $release = null
 optional release name
 
string null $url = null
 optional URL of a page with more info about the update
 
int $version
 the available version of the component
 

Detailed Description

Defines the structure of objects returned by core::update::checker::get_update_info().

Constructor & Destructor Documentation

◆ __construct()

core\update\info::__construct ( $name,
array $info )

Creates new instance of the class.

The $info array must provide at least the 'version' value and optionally all other values to populate the object's properties.

Parameters
string$namethe frankenstyle component name
array$infoassociative array with other properties

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