Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
cleanContext.php File Reference

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)
 

Function Documentation

basicDbClean ( Action $action)

Definition at line 150 of file cleanContext.php.

+ Here is the call graph for this function:

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 ( )

Definition at line 155 of file cleanContext.php.

+ Here is the call graph for this function:

execSqlFile ( Action $action,
  $sqlFile 
)

Definition at line 105 of file cleanContext.php.

+ Here is the call graph for this function:

execSqlFiles ( Action $action,
  $prefix 
)

Definition at line 125 of file cleanContext.php.

+ Here is the call graph for this function:

fullDbClean ( Action $action)

Definition at line 145 of file cleanContext.php.

+ Here is the call graph for this function:

getSqlFiles (   $prefix)

Definition at line 75 of file cleanContext.php.

mkTmpScript (   $script,
  $prefix 
)

Definition at line 62 of file cleanContext.php.

+ Here is the call graph for this function:

Variable Documentation

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.

$usage = new ApiUsage()

Definition at line 18 of file cleanContext.php.

if ($real||$full) else
Initial value:
{
print "Basic clean.\n"
print
Definition: checklist.php:49

Definition at line 48 of file cleanContext.php.

← centre documentaire © anakeen