eZ Publish  [4.2]
cleanup.php File Reference

Go to the source code of this file.

Variables

 $clean
if($siteAccess) $cleanAllItems = false
 $cli = eZCLI::instance()
 $dbHost = $options['db-host'] ? $options['db-host'] : false
 $dbImpl = $options['db-driver'] ? $options['db-driver'] : false
 $dbName = $options['db-database'] ? $options['db-database'] : false
 $dbPassword = $options['db-password'] ? $options['db-password'] : false
if(count($options['arguments'])< 1) $dbUser = $options['db-user'] ? $options['db-user'] : false
 $endl = $cli->endlineString()
 $options
 $script
 $showSQL = $options['sql'] ? true : false
 $siteAccess = $options['siteaccess'] ? $options['siteaccess'] : false

Variable Documentation

$clean
Initial value:
 array( 'session' => false,
                'expired_session' => false,
                'preferences' => false,
                'browse' => false,
                'tipafriend' => false,
                'shop' => false,
                'forgotpassword' => false,
                'workflow' => false,
                'collaboration' => false,
                'collectedinformation' => false,
                'notification' => false,
                'searchstats' => false )

Definition at line 83 of file cleanup.php.

if ($siteAccess) $cleanAllItems = false

Definition at line 82 of file cleanup.php.

$cli = eZCLI::instance()

Definition at line 34 of file cleanup.php.

$dbHost = $options['db-host'] ? $options['db-host'] : false

Definition at line 71 of file cleanup.php.

$dbImpl = $options['db-driver'] ? $options['db-driver'] : false

Definition at line 73 of file cleanup.php.

$dbName = $options['db-database'] ? $options['db-database'] : false

Definition at line 72 of file cleanup.php.

$dbPassword = $options['db-password'] ? $options['db-password'] : false

Definition at line 70 of file cleanup.php.

if (count($options['arguments'])< 1) $dbUser = $options['db-user'] ? $options['db-user'] : false

Definition at line 69 of file cleanup.php.

$endl = $cli->endlineString()

Definition at line 35 of file cleanup.php.

$options
Initial value:
 $script->getOptions( "[db-host:][db-user:][db-password:][db-database:][db-type:|db-driver:][sql]",
                                "[name]",
                                array( 'db-host' => "Database host",
                                       'db-user' => "Database user",
                                       'db-password' => "Database password",
                                       'db-database' => "Database name",
                                       'db-driver' => "Database driver",
                                       'db-type' => "Database driver, alias for --db-driver",
                                       'sql' => "Display sql queries"
                                       ) )

Definition at line 50 of file cleanup.php.

Initial value:
 eZScript::instance( array( 'description' => ( "eZ Publish database cleanup.\n\n" .
                                                        "Will cleanup various data from the currently used database in eZ Publish\n" .
                                                        "\n" .
                                                        "Possible values for NAME is:\n" .
                                                        "session, expired_session, preferences, browse, tipafriend, shop, forgotpassword, workflow,\n" .
                                                        "collaboration, collectedinformation, notification, searchstats or all (for all items)\n" .
                                                        "cleanup.php -s admin session"),
                                     'use-session' => false,
                                     'use-modules' => true,
                                     'use-extensions' => true ) )

Definition at line 37 of file cleanup.php.

$showSQL = $options['sql'] ? true : false

Definition at line 74 of file cleanup.php.

$siteAccess = $options['siteaccess'] ? $options['siteaccess'] : false

Definition at line 75 of file cleanup.php.