eZPublishCommunityProject(LegacyStack)  2013.6
removetrashedimages.php File Reference

Namespaces

 update
 File containing the section identifier upgrade script.
 

Functions

 databaseCleanup ($directory)
 Remove content from "trashed" directories under $directory from ezdbfile and ezdbfile_data tables. More...
 
 dfsCleanup ($directory)
 Removes content from "trashed" directories under $directory from ezdfsfile table and below the mount point. More...
 
 filesystemCleanup ($directory)
 Traverses $directory to recursively find "trashed" directories and remove them. More...
 

Variables

 $cli = eZCLI::instance()
 
 $directory = eZSys::varDirectory() . "/storage/images"
 
if(!isset($options['n'])) $fileHandler = eZINI::instance( "file.ini" )->variable( "ClusteringSettings", "FileHandler" )
 
 $options
 
 $script
 

Function Documentation

databaseCleanup (   $directory)

Remove content from "trashed" directories under $directory from ezdbfile and ezdbfile_data tables.

Parameters
string$directory
dfsCleanup (   $directory)

Removes content from "trashed" directories under $directory from ezdfsfile table and below the mount point.

Parameters
string$directory
filesystemCleanup (   $directory)

Traverses $directory to recursively find "trashed" directories and remove them.

Parameters
string$directory

Variable Documentation

$cli = eZCLI::instance()
if (!isset($options['n'])) $fileHandler = eZINI::instance( "file.ini" )->variable( "ClusteringSettings", "FileHandler" )
$options
Initial value:
= $script->getOptions(
"[n]",
"",
array(
"-q" => "Quiet mode",
"n" => "Do not wait"
)
)
$script
Definition: adddefaultstates.php:22
$script
Initial value:
array(
"description" => "eZ Publish trashed images sanitizer script (#017781).",
"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