eZ Publish  [trunk]
fixezurlobjectlinks.php File Reference

Go to the source code of this file.

Classes

class  ezpUrlObjectLinkUpdate
 Utility class to help fix occurrences of external http-links not correctly associated with all versions/translations of an object. More...

Variables

 $argConfig = ""
 $arguments = false
 $cli = eZCLI::instance()
 $config = "[fix][fetch-limit:]"
 $linkUpdate = new ezpUrlObjectLinkUpdate( $cli, $script, $options )
 $optionHelp
 $options = $script->getOptions( $config, $argConfig, $optionHelp, $arguments, $useStandardOptions )
 $script
 $useStandardOptions = true

Variable Documentation

$argConfig = ""

Definition at line 30 of file fixezurlobjectlinks.php.

$arguments = false

Definition at line 36 of file fixezurlobjectlinks.php.

$cli = eZCLI::instance()

Definition at line 16 of file fixezurlobjectlinks.php.

$config = "[fix][fetch-limit:]"

Definition at line 29 of file fixezurlobjectlinks.php.

$linkUpdate = new ezpUrlObjectLinkUpdate( $cli, $script, $options )

Definition at line 44 of file fixezurlobjectlinks.php.

$optionHelp
Initial value:
 array(
                    "fix" => "Fix missing ezurl-object-link references. This will make sure that URLs\n" .
                    "created with older versions, will not be lost, when older\nversions/translations are removed.",
                    "fetch-limit" => "The number of attributes to fetch in one chunk. Default value is 200,\nthe limit must be higher than 1."
                    )

Definition at line 31 of file fixezurlobjectlinks.php.

$options = $script->getOptions( $config, $argConfig, $optionHelp, $arguments, $useStandardOptions )

Definition at line 40 of file fixezurlobjectlinks.php.

Initial value:
 eZScript::instance( array( 'description' => ( "Fix older occurrences of link items in XML-blocks, where they might not be\n" .
                                                        "linked correctly for all versions/translations. This script will update\n" .
                                                        "these references for existing entries. Note that URLs which have been lost\n" .
                                                        "already will not be restored in this process, these need to be re-entered.\n" .
                                                        "\n" .
                                                        "fixezurlobjectlink.php" ),
                                      'use-session' => false,
                                      'use-modules' => true,
                                      'use-extensions' => true,
                                    ) )

Definition at line 17 of file fixezurlobjectlinks.php.

$useStandardOptions = true

Definition at line 37 of file fixezurlobjectlinks.php.