Joomla CMS  3.8.5 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.8.5 et du framework Joomla Platform intégré
Référence de la classe FOFUtilsFilescheck

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
 

Description détaillée

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

Documentation des constructeurs et destructeur

◆ __construct()

__construct (   $option,
  $version,
  $date 
)

Create and initialise the object

Paramètres
string$optionComponent name, e.g. com_foobar
string$versionThe current component version, as reported by the component
string$dateThe current component release date, as reported by the component

Références $date, $db, $extension, $option, $query, $version, FOFPlatform\getInstance(), JPATH_ADMINISTRATOR, et option.

Documentation des fonctions membres

◆ fastCheck()

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.

Renvoie
bool False when there are mismatched files and directories

Références JPATH_ROOT.

◆ isWrongComponentVersion()

isWrongComponentVersion ( )

Is the reported component version different than the version of the #__extensions table?

Renvoie
boolean

◆ isWrongFilesVersion()

isWrongFilesVersion ( )

Is the fileslist.php reporting a version different than the reported component version?

Renvoie
boolean

◆ slowCheck()

slowCheck (   $idx = 0)

Performs a slow, thorough check of all files and folders (including MD5/SHA1 sum checks)

Paramètres
int$idxThe index from where to start
Renvoie
array Progress report

Références elseif, et JPATH_ROOT.

Documentation des champs

◆ $date

$date = null
protected

◆ $dirList

$dirList = array()
protected

◆ $fileList

$fileList = array()
protected

◆ $option

$option = ''
protected

◆ $version

$version = null
protected

◆ $wrongComponentVersion

$wrongComponentVersion = false
protected

◆ $wrongFilesVersion

$wrongFilesVersion = false
protected

La documentation de cette classe a été générée à partir du fichier suivant :