eZPublish  4.4
correctxmlalign.php File Reference

Functions

 convertCustomAlign ($doc, $xmlString, $customAlignAttribute, &$customAlignTagList, &$modificationList)
 
if(!$db->isConnected()) convertEmbedAlign ($doc, &$modificationList)
 

Variables

 $cli = eZCLI::instance()
 
 $customAlignAttribute = 'align'
 
 $customAlignTagList = array()
 
 $dbHost = $options['db-host']
 
 $dbImpl = $options['db-type']
 
 $dbName = $options['db-database']
 
 $dbPassword = $options['db-password']
 
 $dbUser = $options['db-user']
 
 $extraVerbosOutput = false
 
 $isQuiet = $script->isQuiet()
 
 $options
 
if(!is_array($xmlFieldsArray)) $pass = 0
 
 $script
 
 $skipCustomAlign = $options['skip-custom-align']
 
 $skipEmbedAlign = $options['skip-embed-align']
 
 $totalAttrCount = 0
 
 $xmlFieldsArray = $db->arrayQuery( $xmlFieldsQuery, array( "limit" => QUERY_LIMIT ) )
 
 $xmlFieldsQuery
 
if($dbHost or $dbName or
$dbUser or $dbImpl) 
else
 
 if (!file_exists( 'update/common/scripts')||!is_dir( 'update/common/scripts'))
 
const QUERY_LIMIT 100
 

Function Documentation

convertCustomAlign (   $doc,
  $xmlString,
  $customAlignAttribute,
$customAlignTagList,
$modificationList 
)
if (!$db->isConnected()) convertEmbedAlign (   $doc,
$modificationList 
)

Variable Documentation

$cli = eZCLI::instance()
$customAlignAttribute = 'align'

Referenced by convertCustomAlign().

$customAlignTagList = array()

Referenced by convertCustomAlign().

$dbHost = $options['db-host']
$dbImpl = $options['db-type']
$dbName = $options['db-database']
$dbPassword = $options['db-password']
$dbUser = $options['db-user']
$extraVerbosOutput = false
$isQuiet = $script->isQuiet()
$options
Initial value:
= $script->getOptions( "[db-host:][db-user:][db-password:][db-database:][db-type:][skip-embed-align][skip-custom-align][custom-align-attribute]",
'',
array( 'db-host' => "Database host",
'db-user' => "Database user",
'db-password' => "Database password",
'db-database' => "Database name",
'db-type' => "Database type, e.g. mysql or postgresql",
'skip-embed-align' => "Skip adding align='right' on <embed> and <embed-inline> on tags that don't have these.",
'skip-custom-align' => "Skip converting custom:align attribute to align attribute on supported tags.",
'custom-align-attribute' => "Lets you specify name of custom:align attribute, default is 'align'."
) )
$script
Definition: adddefaultstates.php:14
if (!is_array($xmlFieldsArray)) $pass = 0
$script
Initial value:
= eZScript::instance( array( 'description' => "\nThis script performs tasks needed to upgrade to 4.1:\n" .
"\n- Converting custom:align attributes to align attiribute on supported tags" .
"\n- Setting missing align attribute on <embed> and <embed-inline> to align=right." .
"\nYou can optionally perform only some of these tasks.",
'use-session' => false,
'use-modules' => false,
'use-extensions' => true ) )
static instance($settings=array())
Returns a shared instance of the eZScript class.
Definition: ezscript.php:1056
$skipCustomAlign = $options['skip-custom-align']
$skipEmbedAlign = $options['skip-embed-align']
$totalAttrCount = 0
$xmlFieldsArray = $db->arrayQuery( $xmlFieldsQuery, array( "limit" => QUERY_LIMIT ) )
$xmlFieldsQuery
Initial value:
= "SELECT id, version, contentobject_id, data_text
FROM ezcontentobject_attribute
WHERE data_type_string = 'ezxmltext'"
if ($dbHost or $dbName or $dbUser or $dbImpl) else
Initial value:
{
$db
Definition: adddefaultstates.php:28
static instance($databaseImplementation=false, $databaseParameters=false, $forceNewInstance=false)
Returns a shared instance of the eZDBInterface class aka database object.
Definition: ezdb.php:143
if(!file_exists( 'update/common/scripts')||!is_dir( 'update/common/scripts'))
const QUERY_LIMIT 100