Constructor
void
__construct
()
Apply chmod on file(s)
string,
applyChmod
($right, $right, $files, $files)
-
$right,
$right: string : rights to apply to file(s) format : r read (and execute if it's a folder) w read and write (and execute if it's a folder) x read+write+execute XXX unix chmod octal value (ex : 664, 775, etc.)
-
$files,
$files: string : the files to apply new rights (relative to CMS_file::FILE_SYSTEM)
Launch script PATH_AUTOMNE_CHMOD_SCRIPT_FS
boolean
automneGeneralScript
()
Is this errors can be easilly corrected by patch system ?
boolean
canCorrectErrors
($errorsInfos, $errorsInfos)
-
$errorsInfos,
$errorsInfos: array, the errors returned by checkInstall method
Change group on file(s)
string,
changeGroup
($group, $group, $files, $files)
-
$group,
$group: string : new group to apply to file(s)
-
$files,
$files: string : the files to apply new rights (relative to CMS_file::FILE_SYSTEM)
Change owner on file(s)
string,
changeOwner
($owner, $owner, $files, $files)
-
$owner,
$owner: string : new owner to apply to file(s)
-
$files,
$files: string : the files to apply new rights (relative to CMS_file::FILE_SYSTEM)
Check install parameters
string
checkInstall
($array, &$array, $errorsInfo &$errorsInfo)
-
$array,
&$array: install command to check, view documentation for format
-
$errorsInfo
&$errorsInfo: array, infos on errors found in checked install commands. Returned by reference.
Check patch parameters
true
checkPatch
(array $array)
-
array
$array: of parameters to check (usually : file patch), view documentation for format
Do patch installation
void
doInstall
(array &$array, [array $excludeCommand = array()], [ $stopOnErrors = true])
-
array
&$array: of install command to do, view documentation for format This array MUST be checked before by checkInstall method to ensure it format is as correct as possible
-
array
$excludeCommand: of excluded commands
-
$stopOnErrors
Execute a command
string,
executeCommand
($script, $command, $error, &$error)
-
$script,
$command: string : the Command to execute
-
$error,
&$error: integer : the error Command return, passed by reference
Execute a PHP script
string,
executePhpScript
($script, $script)
-
$script,
$script: string : the CMS_file::FILE_SYSTEM PHP script filename
Execute a SQL script
boolean,
executeSqlScript
($script, $script, [simulation $simulation = false])
-
$script,
$script: string : the CMS_file::FILE_SYSTEM SQL script filename This script can be SQL export provided by phpMyadmin or mysqldump, etc.
-
simulation
$simulation: : boolean, if true, only do a read of the script and if it contain sql data, return true.
Check validity format of a given right
boolean
_checkRightFormat
(string $right)
-
string
$right: the right to check format : r read (and execute if it's a folder) w read and write (and execute if it's a folder) x read+write+execute XXX unix chmod octal value (ex : 664, 775, etc.)
void
_report
( $text, [ $isErrror = false])
Inherited Methods
Inherited From CMS_grandFather
CMS_grandFather::autoload()
CMS_grandFather::hasError()
CMS_grandFather::log()
CMS_grandFather::PHPErrorHandler()
CMS_grandFather::raiseError()
CMS_grandFather::setDebug()
CMS_grandFather::setLog()
CMS_grandFather::_raiseError()
CMS_grandFather::__call()