eZPublishCommunityProject(LegacyStack)  2013.6
ezwebinupgrade.php File Reference

Namespaces

 kernel
 Autoloader definition for eZ Publish Kernel files.
 

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()
 
 $packageDir = $scriptOptions['package-dir'] ? $scriptOptions['package-dir'] : "/tmp/ezwebin"
 
if(!$packageRepository) $packageList = $scriptOptions['package']
 
if($scriptOptions['to-version']) $packageRepository = $scriptOptions['repository']
 
 $packageURL = $scriptOptions['url']
 
 $script
 
 $scriptOptions
 
 $toVersion = '1.2-0'
 
if(!$scriptOptions['siteaccess']) else
 

Function Documentation

execUpdateFunction (   $funcName,
  $toVersion 
)

define constans

define global vars

includes

isValidWebinUpgradeVersion (   $version)
updateClasses_1_2_0 ( )

update content classes

updateINI_1_2_0 ( )
updateINI_1_4_0 ( )
updateObjects_1_2_0 ( )

update content objects

upgradePackageListByWebinVersion (   $version)

Variable Documentation

$autoMode = $scriptOptions['auto-mode']
$cli = eZCLI::instance()
$packageDir = $scriptOptions['package-dir'] ? $scriptOptions['package-dir'] : "/tmp/ezwebin"
if (!$packageRepository) $packageList = $scriptOptions['package']
if ($scriptOptions['to-version']) $packageRepository = $scriptOptions['repository']
$packageURL = $scriptOptions['url']
$script
Initial value:
= eZScript::instance( array( 'description' => ( "\n" .
"This script will upgrade ezwebin." ),
'use-session' => false,
'use-modules' => true,
'use-extensions' => true,
'user' => true ) )
static instance($settings=array())
Returns a shared instance of the eZScript class.
Definition: ezscript.php:1084
$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 )
)
$script
Definition: adddefaultstates.php:22
$toVersion = '1.2-0'
if ($autoMode!= 'off') if (downloadPackages($packageList, $packageURL, $packageDir, $packageRepository)) if (file_exists(installScriptDir($packageRepository, 'ezwebin_site'))) else
Initial value:
{
$siteAccessExists = checkSiteaccess( $scriptOptions['siteaccess'] )
checkSiteaccess($siteAccess, $bailOutOnError=false)
Definition: ezwebincommon.php:401
$scriptOptions
Definition: convertprice2multiprice.php:41