eZ Publish  [trunk]
ezwebinupgrade.php File Reference

Go to the source code of this file.

Functions

 execUpdateFunction ($funcName, $toVersion)
 isValidWebinUpgradeVersion ($version)
 updateClasses_1_2_0 ()
 updateINI_1_2_0 ()
 updateINI_1_4_0 ()
 updateObjects_1_2_0 ()
 upgradePackageListByWebinVersion ($version)

Variables

if(!$packageURL) global $autoMode = $scriptOptions['auto-mode']
 $cli = eZCLI::instance()
if(!$packageRepository) $packageList = $scriptOptions['package']
if($scriptOptions['to-version']) $packageRepository = $scriptOptions['repository']
 $packageURL = $scriptOptions['url']
 $script
 $scriptOptions
 $toVersion = '1.2-0'

Function Documentation

execUpdateFunction ( funcName,
toVersion 
)

define constans

define global vars

includes

Definition at line 31 of file ezwebinupgrade.php.

Definition at line 338 of file ezwebinupgrade.php.

update content classes

Definition at line 91 of file ezwebinupgrade.php.

Definition at line 145 of file ezwebinupgrade.php.

Definition at line 242 of file ezwebinupgrade.php.

update content objects

Definition at line 130 of file ezwebinupgrade.php.

Definition at line 41 of file ezwebinupgrade.php.


Variable Documentation

$autoMode = $scriptOptions['auto-mode']

Definition at line 459 of file ezwebinupgrade.php.

$cli = eZCLI::instance()

Definition at line 358 of file ezwebinupgrade.php.

if (!$packageRepository) $packageList = $scriptOptions['package']

Definition at line 440 of file ezwebinupgrade.php.

if ($scriptOptions['to-version']) $packageRepository = $scriptOptions['repository']

Definition at line 430 of file ezwebinupgrade.php.

$packageURL = $scriptOptions['url']

Definition at line 458 of file ezwebinupgrade.php.

Initial value:
 eZScript::instance( array( 'description' => ( "\n" .
                                                        "This script will upgrade ezwebin." ),
                                     'use-session' => false,
                                     'use-modules' => true,
                                     'use-extensions' => true,
                                     'user' => true ) )

Definition at line 359 of file ezwebinupgrade.php.

$scriptOptions
Initial value:
 $script->getOptions( "[to-version:][repository:][package:][package-dir:][url:][auto-mode:]",
                                      "",
                                      array( 'to-version' => "Specify what upgrade path to use. \n" .
                                                             " available options: '1.2-0' - upgrade 1.1-1 to 1.2-0\n" .
                                                             "                    '1.3-0' - upgrade 1.2-0 to 1.3-0\n" .
                                                             "                    '1.4-0' - upgrade 1.3-0 to 1.4-0",
                                             'repository' => "Path to repository where unpacked(unarchived) packages are \n" .
                                                         "placed. it's relative to 'var/[site.ini].[FileSettings].[StorageDir]/[package.ini].[RepositorySettings].[RepositoryDirectory]' \n".
                                                         "(default is 'var/storage/packages/ez_systems')",
                                             'package' => "Package(s) to install, f.e. 'ezwebin_classes'",
                                             'package-dir' => "Path to directory with packed(ezpkg) packages(default is '/tmp/ezwebin') ",
                                             'url' => "URL to download packages, f.e. 'http://packages.ez.no/ezpublish/3.9'.\n" .
                                                      "'package-dir' can be specified to store uploaded packages on local computer.\n" .
                                                      "if 'package-dir' is not specified then default dir('/tmp/ezwebin') will be used.",
                                             'auto-mode' => "[on/off]. Do not ask what to do in case of confilicts. By default is 'on'"
                                           ),
                                      false,
                                      array( 'user' => true )
                                     )

Definition at line 367 of file ezwebinupgrade.php.

$toVersion = '1.2-0'

Definition at line 413 of file ezwebinupgrade.php.