![]() |
Joomla CMS
3.9.25 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.9.25 et du framework Joomla Platform intégré
|
Fonctions membres publiques | |
| __construct ($option, $version, $date) | |
| isWrongComponentVersion () | |
| isWrongFilesVersion () | |
| fastCheck () | |
| slowCheck ($idx=0) | |
Attributs protégés | |
| $option = '' | |
| $version = null | |
| $date = null | |
| $fileList = array() | |
| $dirList = array() | |
| $wrongComponentVersion = false | |
| $wrongFilesVersion = false | |
A utility class to check that your extension's files are not missing and have not been tampered with.
You need a file called fileslist.php in your component's administrator root directory with the following contents:
$phpFileChecker = array( 'version' => 'revCEE2DAB', 'date' => '2014-10-16', 'directories' => array( 'administrator/components/com_foobar', .... ), 'files' => array( 'administrator/components/com_foobar/access.xml' => array('705', '09aa0351a316bf011ecc8c1145134761', 'b95f00c7b49a07a60570dc674f2497c45c4e7152'), .... ) );
All directory and file paths are relative to the site's root
The directories array is a list of
| __construct | ( | $option, | |
| $version, | |||
| $date | |||
| ) |
Create and initialise the object
| string | $option | Component name, e.g. com_foobar |
| string | $version | The current component version, as reported by the component |
| string | $date | The current component release date, as reported by the component |
Références $date, $db, $extension, $option, $query, $version, FOFPlatform\getInstance(), JPATH_ADMINISTRATOR, et option.
| fastCheck | ( | ) |
Performs a fast check of file and folders. If even one of the files/folders doesn't exist, or even one file has the wrong file size it will return false.
Références JPATH_ROOT.
| isWrongComponentVersion | ( | ) |
Is the reported component version different than the version of the #__extensions table?
| isWrongFilesVersion | ( | ) |
Is the fileslist.php reporting a version different than the reported component version?
| slowCheck | ( | $idx = 0 | ) |
Performs a slow, thorough check of all files and folders (including MD5/SHA1 sum checks)
| int | $idx | The index from where to start |
Références elseif, et JPATH_ROOT.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |