eZPublishCommunityProject(LegacyStack)  2013.5
updateordernumber.php File Reference

Namespaces

 update
 File containing the section identifier upgrade script.
 

Variables

 $cli = eZCLI::instance()
 
 $db = eZDB::instance()
 
 $isQuiet = $script->isQuiet()
 
 $maxID = $maxResult[0]['max_id']
 
 $maxNubmer = $maxResult[0]['max_order_nr']
 
 $maxResult = $db->arrayQuery( 'SELECT MAX( order_nr ) AS max_order_nr FROM ezorder' )
 
 $options = $script->getOptions( '', '', array( '-q' => 'Quiet mode' ) )
 
 $script
 
if((int)$maxNubmer<=(int)$maxID) else
 

Variable Documentation

$cli = eZCLI::instance()
$db = eZDB::instance()
$isQuiet = $script->isQuiet()
$maxID = $maxResult[0]['max_id']
$maxNubmer = $maxResult[0]['max_order_nr']
$maxResult = $db->arrayQuery( 'SELECT MAX( order_nr ) AS max_order_nr FROM ezorder' )
$options = $script->getOptions( '', '', array( '-q' => 'Quiet mode' ) )
$script
Initial value:
= eZScript::instance( array( 'description' => 'eZ Publish webshop order number update script. '.
'This script makes sure that the new order ' .
'number is consistent with old order number. '.
'See issue http://issues.ez.no/18233.',
'use-session' => false,
'use-modules' => false,
'use-extensions' => true ) )
static instance($settings=array())
Returns a shared instance of the eZScript class.
Definition: ezscript.php:1084
if ((int)$maxNubmer<=(int)$maxID) else
Initial value:
{
$db->query( "INSERT INTO ezorder_nr_incr VALUES( $maxNubmer )" )
$db
Definition: adddefaultstates.php:36