API - XOOPS 2.5.11 Beta 2
By monxoops.fr
|
Namespaces | |
namespace | installer |
Functions | |
writeConfigurationFile ($vars, $path, $sourceName, $fileName) | |
getStats ($filename) | |
getTmpStats () | |
prepStats ($stat) | |
checkFileWriteablity ($files) | |
copyConfigDistFiles ($vars) | |
Variables | |
$pageHasForm = false | |
$pageHasHelp = false | |
$vars =& $_SESSION['settings'] | |
if(empty( $vars[ 'ROOT_PATH'])) elseif(empty($vars['DB_HOST'])) | $writeFiles |
$writeCheck = checkFileWriteablity($writeFiles) | |
if(true===$writeCheck) | else |
foreach ( $writeCheck as $errorMsg) | |
checkFileWriteablity | ( | $files | ) |
Attempt to check if a set of files can be written
string[] | $files | fully qualified file names to check |
copyConfigDistFiles | ( | $vars | ) |
Install working versions of various *.dist.php files to xoops_data/configs/
$vars | array of system variables, we care about ROOT_PATH and VAR_PATH keys |
getStats | ( | $filename | ) |
Get file stats
string | $filename | file or directory name |
getTmpStats | ( | ) |
Get file stats on a created temp file
prepStats | ( | $stat | ) |
Get stat() info in a more usable form
array | $stat | return from PHP stat() |
writeConfigurationFile | ( | $vars, | |
$path, | |||
$sourceName, | |||
$fileName | |||
) |
Copy a configuration file from template, then rewrite with actual configuration values
string[] | $vars | config values |
string | $path | directory path where files reside |
string | $sourceName | template file name |
string | $fileName | configuration file name |
$pageHasForm = false |
$pageHasHelp = false |
$vars =& $_SESSION['settings'] |
$writeCheck = checkFileWriteablity($writeFiles) |
if(empty($vars['ROOT_PATH'])) elseif (empty( $vars[ 'DB_HOST'])) $writeFiles |
foreach($writeCheck as $errorMsg) | ( | $writeCheck as | ) |