eZPublishCommunityProject(LegacyStack)  2013.6
dfscleanup.php File Reference

Functions

 fixWinPath ($path)
 Replaces backslashes in $path with forward slashes. More...
 

Variables

 $checkBase = isset( $options['S'] )
 
 $checkDFS = isset( $options['B'] )
 
 $cli = eZCLI::instance()
 
if(!$fileHandler instanceof
eZDFSFileHandler
$delete = isset( $options['D'] )
 
 $fileHandler = eZClusterFileHandler::instance()
 
 $options
 
 $optIterationLimit = isset( $options['iteration-limit'] ) ? (int)$options['iteration-limit'] : false
 
 $pause = 1000
 
 $script
 
if(isset($options['path'])) else
 

Function Documentation

fixWinPath (   $path)

Replaces backslashes in $path with forward slashes.

Clustering only references path using forward slashes. This makes sure input path are consistent

Parameters
string$pathThe path to update
Returns
string The modified path.

Variable Documentation

$checkBase = isset( $options['S'] )
$checkDFS = isset( $options['B'] )
$cli = eZCLI::instance()
if (!$fileHandler instanceof eZDFSFileHandler) $delete = isset( $options['D'] )
$options
Initial value:
= $script->getOptions(
"[S][B][D][path:][iteration-limit:]", "",
array(
"D" => "Delete nonexistent files",
"S" => "Check files on DFS share against files in the database",
"B" => "Checks files in database against files on DFS share",
"path" => "Path to limit checks to (e.g.: var/storage/content - Default: var/)",
"iteration-limit" => "Amount of items to remove in each iteration when performing a purge operation. Default is all in one iteration.",
)
)
$script
Definition: adddefaultstates.php:22
$optIterationLimit = isset( $options['iteration-limit'] ) ? (int)$options['iteration-limit'] : false
$pause = 1000
$script
Initial value:
array(
'description' => "Script for checking database and DFS file consistency",
'use-session' => false,
'use-modules' => true,
'use-extensions' => true
)
)
static instance($settings=array())
Returns a shared instance of the eZScript class.
Definition: ezscript.php:1084
if (isset($options['path'])) else
Initial value:
{
$checkPath = eZINI::instance()->variable( 'FileSettings', 'VarDir' )
static instance($fileName= 'site.ini', $rootDir= 'settings', $useTextCodec=null, $useCache=null, $useLocalOverrides=null, $directAccess=false, $addArrayDefinition=false)
Returns a shared instance of the eZINI class pr $fileName, $rootDir and $useLocalOverrides param comb...
Definition: ezini.php:1826