eZPublish  4.4
fixorphanimages.php File Reference

Variables

 $aImageFiles = eZPersistentObject::fetchObjectList( eZImageFile::definition() )
 
 $cli = eZCLI::instance()
 
 $nbImageFiles = count( $aImageFiles )
 
 $options
 
 $output = new ezcConsoleOutput()
 
 $script
 
$output formats error color = 'red'
 
if($nbImageFiles > 0) else
 
$output formats error style = array( 'bold' )
 
if(!isset($options['n'])) try
 

Variable Documentation

$cli = eZCLI::instance()
$nbImageFiles = count( $aImageFiles )
$options
Initial value:
= $script->getOptions( "[n]",
"",
array( 'n' => 'Do not wait the 10 safety seconds before starting' ) )
$script
Definition: adddefaultstates.php:14
$script
Initial value:
= eZScript::instance( array( 'description' => ( "Fixes eZImageAliasHandler bug (http://issues.ez.no/15155)" ),
'use-session' => false,
'use-modules' => true,
'use-extensions' => true ) )
static instance($settings=array())
Returns a shared instance of the eZScript class.
Definition: ezscript.php:1056
$output formats error color = 'red'
if ($nbImageFiles > 0) else
Initial value:
{
$output->outputText( 'No image file found !' )
$output
Definition: fixorphanimages.php:42
$output formats error style = array( 'bold' )
if (!isset($options['n'])) try
Initial value:
{
$output->outputLine( 'Looking for obsolete image files...' )
$output
Definition: fixorphanimages.php:42