eZPublish  3.8
clusterize.php File Reference

Functions

 copyBinaryfilesToDB ($remove)
 
 copyFilesFromDB ($copyFiles, $copyImages, $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) $dbFileHandler = eZClusterFileHandler::instance()
 
 $options
 
 $remove = isset( $options['r'] )
 
 $script
 
 $wait = !isset( $options['n'] )
 
if(!is_object($dbFileHandler)||get_class($dbFileHandler)!=
'ezdbfilehandler') if($clusterize) 
else
 

Function Documentation

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

Variable Documentation

$cli =& eZCLI::instance()

Referenced by eZDBPackageHandler\add(), eZInstallScriptPackageHandler\add(), eZFilePackageHandler\add(), eZExtensionPackageHandler\add(), eZContentClassPackageHandler\add(), eZContentObjectPackageHandler\add(), changeSiteAccessSetting(), checkParameters(), connectToDatabase(), copyBinaryfilesToDB(), copyFilesFromDB(), copyImagesToDB(), copyMediafilesToDB(), copyPublishContentObject(), currencyForLocale(), eZCodeMapper\error(), eZFatalError(), eZStaticCache\generateAlwaysUpdatedCache(), eZStaticCache\generateCache(), eZCLI\getOptions(), eZScript\getOptions(), eZDBPackageHandler\handleAddParameters(), eZInstallScriptPackageHandler\handleAddParameters(), eZFilePackageHandler\handleAddParameters(), eZExtensionPackageHandler\handleAddParameters(), eZContentClassPackageHandler\handleAddParameters(), eZContentObjectPackageHandler\handleAddParameters(), handleContextNode(), handleMessageNode(), eZDBPackageHandler\handleParameters(), eZFilePackageHandler\handleParameters(), eZContentClassPackageHandler\handleParameters(), eZContentObjectPackageHandler\handleParameters(), help(), helpAdd(), helpCreate(), helpDelete(), helpExport(), helpHelp(), helpImport(), helpInfo(), helpInstall(), helpList(), helpSet(), importRSSItem(), eZScript\initialize(), eZScript\iterate(), listTypes(), loadDatabaseSchema(), rssImport1(), rssImport2(), eZRunCronjobs\runScript(), setEZXMLAttribute(), eZScript\setIsQuiet(), setNewType(), eZScript\showHelp(), eZScript\shutdown(), eZScript\startup(), eZRunCronjobs\stealMutex(), updateAvailableClasses(), eZScript\updateDebugSettings(), updateLinks(), upgradeMenuINI(), and eZCodeMapper\warning().

$clusterize = !isset( $options['u'] )
$copyFiles = !isset( $options['skip-binary-files'] )

Referenced by copyFilesFromDB().

$copyImages = !isset( $options['skip-images'] )

Referenced by copyFilesFromDB().

$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: clusterize.php:132

Referenced by eZContentObjectPackageHandler\add(), eZShopOperationCollection\addToBasket(), checkParameters(), eZSelectionType\classAttributeContent(), eZContentObjectPackageHandler\createObjectListNode(), eZContentObjectPackageHandler\createSiteAccessListNode(), eZPHPCreator\eZPHPCreator(), eZSelectionType\fetchClassAttributeHTTPInput(), eZContentObjectPackageCreator\finalize(), eZContentObjectPackageHandler\generatePackage(), eZContentObjectPackageCreator\generatePackageInformation(), eZCLI\getOptions(), eZScript\getOptions(), eZOptionType\hasObjectAttributeContent(), eZDBSchemaInterface\loadSchemaTransformationRules(), eZContentObjectVersion\mapLanguage(), eZContentObject\mapLanguage(), eZPDF\modify(), eZTemplateImageOperator\modify(), eZWebDAVContentServer\options(), eZWebDAVServer\outputOptions(), PEAR_Error\PEAR_Error(), PEAR\popErrorHandling(), eZWebDAVServer\processClientRequest(), PEAR\pushErrorHandling(), PEAR\raiseError(), eZMultiOption\removeMultiOptions(), eZOption\removeOptions(), eZMultiOption\removeOptions(), eZContentObjectVersion\serialize(), eZContentObject\serialize(), eZContentObjectTreeNode\serialize(), eZSelectionType\serializeContentClassAttribute(), PEAR\setErrorHandling(), eZDBSchemaInterface\transformSchema(), eZContentObjectVersion\unserialize(), eZContentObject\unserialize(), eZContentObjectTreeNode\unserialize(), eZSelectionType\unserializeContentClassAttribute(), eZContentObjectPackageCreator\validateObjectLimits(), and eZOption\xmlString().

$remove = isset( $options['r'] )
$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 ) )
& instance($settings=array())
Definition: ezscript.php:1011

Referenced by checkParameters(), connectToDatabase(), eZInstallScriptPackageHandler\handleAddParameters(), eZTemplate\loadAndRegisterFunctions(), eZTemplate\loadAndRegisterOperators(), and eZRunCronjobs\runScript().

$wait = !isset( $options['n'] )
if (!is_object($dbFileHandler)||get_class($dbFileHandler)!= 'ezdbfilehandler') if ($clusterize) else
Initial value:
{
$copyImages
Definition: clusterize.php:158
$remove
Definition: clusterize.php:155
$copyFiles
Definition: clusterize.php:156
copyFilesFromDB($copyFiles, $copyImages, $remove)
Definition: clusterize.php:111