Class FOFUtilsFilescheck
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
Copyright: Copyright (C) 2010-2016 Nicholas K. Dionysopoulos / Akeeba Ltd. All rights reserved.
License: General Public License version 2 or later; see LICENSE.txt
Located at fof/utils/filescheck/filescheck.php
Methods summary
public
|
|
public
boolean
|
#
isWrongComponentVersion( )
Is the reported component version different than the version of the #__extensions table? |
public
boolean
|
#
isWrongFilesVersion( )
Is the fileslist.php reporting a version different than the reported component version? |
public
boolean
|
|
public
array
|
Magic methods summary
Properties summary
protected
string
|
$option |
#
The name of the component |
protected
string
|
$version |
#
Current component version |
protected
string
|
$date |
#
Current component release date |
protected
array
|
$fileList |
#
List of files to check as filepath => (filesize, md5, sha1) |
protected
array
|
$dirList |
#
List of directories to check that exist |
protected
boolean
|
$wrongComponentVersion |
#
Is the reported component version different than the version of the #__extensions table? |
protected
boolean
|
$wrongFilesVersion |
#
Is the fileslist.php reporting a version different than the reported component version? |