Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Public Member Functions | Public Attributes | List of all members
core\update\info Class Reference

Defines the structure of objects returned by (). More...

Public Member Functions

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

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 ().

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: