eZPublishCommunityProject(LegacyStack)  2013.6
clusterize.php File Reference

Namespaces

 kernel
 Autoloader definition for eZ Publish Kernel files.
 

Functions

 copyBinaryfilesToDB ($remove)
 
 copyFilesFromDB ($excludeScopes, $remove)
 
 copyImagesToDB ($remove)
 
 copyMediafilesToDB ($remove)
 
 filePathForBinaryFile ($fileName, $mimeType)
 

Variables

 $cli = eZCLI::instance()
 
 $clusterize = !isset( $options['u'] )
 
 $copyFiles = !isset( $options['skip-binary-files'] )
 
 $copyImages = !isset( $options['skip-images'] )
 
 $copyMedia = !isset( $options['skip-media-files'] )
 
if($wait) $fileHandler = eZClusterFileHandler::instance()
 
 $options
 
 $remove = isset( $options['r'] )
 
 $script
 
 $wait = !isset( $options['n'] )
 
if(!is_object($fileHandler))
elseif(!$fileHandler->
requiresClusterizing()) if($clusterize) 
else
 

Function Documentation

copyBinaryfilesToDB (   $remove)
copyFilesFromDB (   $excludeScopes,
  $remove 
)
copyImagesToDB (   $remove)
copyMediafilesToDB (   $remove)
filePathForBinaryFile (   $fileName,
  $mimeType 
)

Variable Documentation

$cli = eZCLI::instance()
$clusterize = !isset( $options['u'] )
$copyFiles = !isset( $options['skip-binary-files'] )
$copyImages = !isset( $options['skip-images'] )
$copyMedia = !isset( $options['skip-media-files'] )
$options
Initial value:
= $script->getOptions( "[u][skip-binary-files][skip-media-files][skip-images][r][n]",
"",
array( 'u' => 'Unclusterize',
'skip-binary-files' => 'Skip copying binary files',
'skip-media-files' => 'Skip copying media files',
'skip-images' => 'Skip copying images',
'r' => 'Remove files after copying',
'n' => 'Do not wait' ) )
$script
Definition: adddefaultstates.php:22
$script
Initial value:
= eZScript::instance( array( 'description' => ( "eZ Publish (un)clusterize\n" .
"Script for moving var_dir files from " .
"filesystem to database and vice versa\n" .
"\n" .
"./bin/php/clusterize.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
$wait = !isset( $options['n'] )
if (!is_object($fileHandler)) elseif (!$fileHandler->requiresClusterizing()) if ($clusterize) else
Initial value:
{
$excludeScopes = array()