\Fuman_System_Check_FileSystem

Checks some important fuman dirs/files

Summary

Methods
Properties
Constants
check()
getTranslation()
addError()
hasErrors()
getErrors()
addSuccess()
hasSuccess()
getSuccess()
__construct()
No public properties found
FILE_NOT_EXIST
FILE_NOT_WRITABLE
_addFile()
$_errors
$_success
$_filesToCheck
N/A
No private methods found
No private properties found
N/A

Constants

FILE_NOT_EXIST

FILE_NOT_EXIST

File does not exist

FILE_NOT_WRITABLE

FILE_NOT_WRITABLE

File is not writable

Properties

$_errors

$_errors : 

Type

$_success

$_success : 

Type

$_filesToCheck

$_filesToCheck : 

Type

Methods

check()

check() : boolean

Execute check

Returns

boolean

getTranslation()

getTranslation(  $template, array  $data) : string

Parameters

$template
array $data

Returns

string

addError()

addError(string  $template, array  $data) : void

Add error messages

Parameters

string $template
array $data

hasErrors()

hasErrors() : boolean

Has error messages

Returns

boolean

getErrors()

getErrors() : array

Get errors messages

Returns

array

addSuccess()

addSuccess(string  $template, array  $data) : void

Add success messages

Parameters

string $template
array $data

hasSuccess()

hasSuccess() : boolean

Has success messages

Returns

boolean

getSuccess()

getSuccess() : array

Get success messages

Returns

array

__construct()

__construct() 

Constructor

_addFile()

_addFile(string  $file, boolean  $writable = false) : void

Adds file to be checked

Parameters

string $file
boolean $writable