eZ Publish  [4.2]
ezflowupgrade.php File Reference

Go to the source code of this file.

Functions

 execUpdateFunction ($funcName, $toVersion)
 isValidFlowUpgradeVersion ($version)
 updateINI_1_1_0 ()
 upgradePackageListByFlowVersion ($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.1-0'

Function Documentation

execUpdateFunction ( funcName,
toVersion 
)

define constans

define global vars

includes

Definition at line 49 of file ezflowupgrade.php.

isValidFlowUpgradeVersion ( version)

Definition at line 81 of file ezflowupgrade.php.

updateINI_1_1_0 ( )

Definition at line 98 of file ezflowupgrade.php.

upgradePackageListByFlowVersion ( version)

Definition at line 59 of file ezflowupgrade.php.


Variable Documentation

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

Definition at line 317 of file ezflowupgrade.php.

Referenced by checkDir(), downloadPackages(), and installPackages().

$cli = eZCLI::instance()

Definition at line 218 of file ezflowupgrade.php.

if (!$packageRepository) $packageList = $scriptOptions['package']
if ($scriptOptions['to-version']) $packageRepository = $scriptOptions['repository']
$packageURL = $scriptOptions['url']

Definition at line 316 of file ezflowupgrade.php.

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

Definition at line 219 of file ezflowupgrade.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.1-0' - upgrade 1.0-0 to 1.1-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. 'ezflow_classes'",
                                             'package-dir' => "Path to directory with packed(ezpkg) packages(default is '/tmp/ezflow') ",
                                             '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/ezflow') 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 227 of file ezflowupgrade.php.

$toVersion = '1.1-0'

Definition at line 271 of file ezflowupgrade.php.

Referenced by execUpdateFunction().