eZPublishCommunityProject(LegacyStack)  2013.5
bin/php/trashpurge.php File Reference

Namespaces

 kernel
 Autoloader definition for eZ Publish Kernel files.
 

Variables

 $options
 
 $purgeHandler = new eZScriptTrashPurge( eZCLI::instance(), false, (bool)$options['memory-monitoring'], $script )
 
 $script
 
if($purgeHandler->run($options['iteration-limit']?(int)$options['iteration-limit']:null,
$options['iteration-sleep']?(int)$options['iteration-sleep']:null)) 
else
 

Variable Documentation

$options
Initial value:
= $script->getOptions(
"[iteration-sleep:][iteration-limit:][memory-monitoring]",
"",
array(
'iteration-sleep' => 'Amount of seconds to sleep between each iteration when performing a purge operation, can be a float. Default is one second.',
'iteration-limit' => 'Amount of items to remove in each iteration when performing a purge operation. Default is 100.',
'memory-monitoring' => 'If set, memory usage will be logged in var/log/trashpurge.log.'
)
)
$script
Definition: adddefaultstates.php:22
$purgeHandler = new eZScriptTrashPurge( eZCLI::instance(), false, (bool)$options['memory-monitoring'], $script )
$script
Initial value:
array(
'description' =>
"Empty eZ Publish trash.\n" .
"Permanently deletes all objects in the trash.\n" .
"\n" .
"./bin/php/trashpurge.php",
'use-session' => false,
'use-modules' => false,
'use-extensions' => true,
)
)
static instance($settings=array())
Returns a shared instance of the eZScript class.
Definition: ezscript.php:1084
if ($purgeHandler->run($options['iteration-limit']?(int)$options['iteration-limit']:null,$options['iteration-sleep']?(int)$options['iteration-sleep']:null)) else
Initial value:
{
$script->shutdown( 1 )
$script
Definition: adddefaultstates.php:22