Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
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: