eZ Publish  [4.2]
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 49 of file ezwebinupgrade.php.

isValidWebinUpgradeVersion ( version)

Definition at line 356 of file ezwebinupgrade.php.

updateClasses_1_2_0 ( )

update content classes

Definition at line 109 of file ezwebinupgrade.php.

updateINI_1_2_0 ( )

Definition at line 163 of file ezwebinupgrade.php.

updateINI_1_4_0 ( )

Definition at line 260 of file ezwebinupgrade.php.

updateObjects_1_2_0 ( )

update content objects

Definition at line 148 of file ezwebinupgrade.php.

upgradePackageListByWebinVersion ( version)

Definition at line 59 of file ezwebinupgrade.php.


Variable Documentation

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

Definition at line 477 of file ezwebinupgrade.php.

$cli = eZCLI::instance()

Definition at line 376 of file ezwebinupgrade.php.

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

Definition at line 458 of file ezwebinupgrade.php.

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

Definition at line 448 of file ezwebinupgrade.php.

$packageURL = $scriptOptions['url']

Definition at line 476 of file ezwebinupgrade.php.

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

Definition at line 377 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 385 of file ezwebinupgrade.php.

$toVersion = '1.2-0'

Definition at line 431 of file ezwebinupgrade.php.