Class flIntegrity
flIntegrity Class
Traverse the file tree from FLROOTPATH building a list of files
and their md5 hash.
Package: fusionLib
Copyright:
Copyright (c) 2011 - 2013 fusionLib. All rights reserved.
Located at system/libs/Integrity/flIntegrity.php
Methods summary
public
|
#
build( string $path, array $ignore = array() )
Build the list of files and hashes.
Build the list of files and hashes.
Parameters
- $path
- The path to start the scan at.
- $ignore
- Paths starting with any of these are ignored.
|
public
array
|
#
getChanges( array $baseSet )
Find the file changes and return them.
Find the file changes and return them.
Parameters
- $baseSet
- Is an array of the expected files and their hashes.
Returns
array An array of changed files and reason flIntegrity::CHANGED, flIntegrity::MISSING, flIntegrity::ADDED
|
public
array
|
#
getFileHash( )
Get the array of file names and their hashes.
Get the array of file names and their hashes.
Returns
array The files and their hashes.
|
public
string
|
#
printChanges( array $changes )
Print the change list to the browser.
Print the change list to the browser.
Parameters
- $changes
- The list of changes and reasons.
Returns
string The list of changes.
|
Constants summary
integer |
CHANGED
|
|
integer |
MISSING
|
|
integer |
ADDED
|
|
Properties summary
protected
array
|
$files
Array of files and hashes.
Array of files and hashes.
|
|
protected
|
$ignore
The list of files to ignore.
The list of files to ignore.
Array
|
|