Go to the source code of this file.
Functions | |
| mkTmpScript ($script, $prefix) | |
| getSqlFiles ($prefix) | |
| execSqlFile (Action &$action, $sqlFile) | |
| execSqlFiles (Action &$action, $prefix) | |
| fullDbClean (Action &$action) | |
| basicDbClean (Action &$action) | |
| cleanTmpFiles () | |
| cleanOldFiles ($dir, $maxAge) | |
| cleanTmpDoc () | |
Variables | |
| global | $action |
| $usage = new ApiUsage() | |
| $real = ($usage->addHiddenParameter("real", "real (yes or no)") == "yes") | |
| $full = ($usage->addEmptyParameter("full", "clean also obsolete permission, log, folder contains")) | |
| $dbaccess = $action->dbaccess | |
| if($dbaccess=="") | $duration = intval($action->GetParam("CORE_LOGDURATION", 60)) |
| $logdelete = sprintf("DELETE FROM doclog where date < '%s'", Doc::getDate(-($duration))) | |
| global | $_SERVER |
| if($real||$full) | else |
| $core_db = $action->dbaccess | |
| $sessionUtils = new SessionUtils($core_db) | |
| basicDbClean | ( | Action & | $action | ) |
| cleanOldFiles | ( | $dir, | |
| $maxAge | |||
| ) |
Definition at line 197 of file cleanContext.php.
| cleanTmpDoc | ( | ) |
Delete temporary documents that have reached their end-of-life (CORE_TMPDOC_MAXAGE).
Definition at line 225 of file cleanContext.php.
Here is the call graph for this function:| cleanTmpFiles | ( | ) |
| execSqlFile | ( | Action & | $action, |
| $sqlFile | |||
| ) |
| execSqlFiles | ( | Action & | $action, |
| $prefix | |||
| ) |
| fullDbClean | ( | Action & | $action | ) |
| getSqlFiles | ( | $prefix | ) |
Definition at line 75 of file cleanContext.php.
| mkTmpScript | ( | $script, | |
| $prefix | |||
| ) |
| global $_SERVER |
Definition at line 41 of file cleanContext.php.
| global $action |
Generated Header (not documented yet)
Definition at line 14 of file cleanContext.php.
| $core_db = $action->dbaccess |
Definition at line 53 of file cleanContext.php.
| $dbaccess = $action->dbaccess |
Definition at line 30 of file cleanContext.php.
| if ($dbaccess=="") $duration = intval($action->GetParam("CORE_LOGDURATION", 60)) |
Definition at line 36 of file cleanContext.php.
| $full = ($usage->addEmptyParameter("full", "clean also obsolete permission, log, folder contains")) |
Definition at line 22 of file cleanContext.php.
| $logdelete = sprintf("DELETE FROM doclog where date < '%s'", Doc::getDate(-($duration))) |
Definition at line 37 of file cleanContext.php.
| $real = ($usage->addHiddenParameter("real", "real (yes or no)") == "yes") |
Definition at line 21 of file cleanContext.php.
| $sessionUtils = new SessionUtils($core_db) |
Definition at line 54 of file cleanContext.php.
Definition at line 18 of file cleanContext.php.
| if ($real||$full) else |
Definition at line 48 of file cleanContext.php.