|
eZ Publish
[4.0]
|
Go to the source code of this file.
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'] ) | |
| copyBinaryfilesToDB | ( | $ | remove | ) |
Definition at line 58 of file clusterize.php.
| copyFilesFromDB | ( | $ | copyFiles, |
| $ | copyImages, | ||
| $ | remove | ||
| ) |
Definition at line 115 of file clusterize.php.
| copyImagesToDB | ( | $ | remove | ) |
Definition at line 95 of file clusterize.php.
| copyMediafilesToDB | ( | $ | remove | ) |
Definition at line 77 of file clusterize.php.
| filePathForBinaryFile | ( | $ | fileName, |
| $ | mimeType | ||
| ) |
Definition at line 50 of file clusterize.php.
Referenced by copyBinaryfilesToDB(), and copyMediafilesToDB().
| $cli = eZCLI::instance() |
Definition at line 135 of file clusterize.php.
| $clusterize = !isset( $options['u'] ) |
Definition at line 158 of file clusterize.php.
| $copyFiles = !isset( $options['skip-binary-files'] ) |
Definition at line 160 of file clusterize.php.
Referenced by copyFilesFromDB().
| $copyImages = !isset( $options['skip-images'] ) |
Definition at line 162 of file clusterize.php.
Referenced by copyFilesFromDB().
| $copyMedia = !isset( $options['skip-media-files'] ) |
Definition at line 161 of file clusterize.php.
| if ($wait) $dbFileHandler = eZClusterFileHandler::instance() |
Definition at line 175 of file clusterize.php.
Referenced by copyBinaryfilesToDB(), copyFilesFromDB(), copyImagesToDB(), and copyMediafilesToDB().
| $options |
$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' ) )
Definition at line 147 of file clusterize.php.
| $remove = isset( $options['r'] ) |
Definition at line 159 of file clusterize.php.
Referenced by copyBinaryfilesToDB(), copyFilesFromDB(), copyImagesToDB(), copyMediafilesToDB(), and eZImageAliasHandler\createImageInformationNode().
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 ) )
Definition at line 136 of file clusterize.php.
| $wait = !isset( $options['n'] ) |
Definition at line 163 of file clusterize.php.