eZPublish  3.8
correctxmltextclasses.php File Reference

Functions

 cleanup (&$node)
 
 updateAvailableClasses (&$doc, &$element, &$isIniModified, &$contentIniDirect, &$XMLSchema, $dumpOnly)
 

Variables

 $classesDumpOnly = $options['dump-only']
 
 $cli =& eZCLI::instance()
 
 $contentIni =& eZINI::instance( 'content.ini' )
 
 $contentIniDirect =& eZINI::instance( 'content.ini.append', $iniPath, null, null, null, true, true )
 
 $dbHost = $options['db-host']
 
 $dbImpl = $options['db-type']
 
 $dbName = $options['db-database']
 
 $dbPassword = $options['db-password']
 
 $dbUser = $options['db-user']
 
 $eZPublishVersion = eZPublishSDK::majorVersion() + eZPublishSDK::minorVersion() * 0.1
 
 $global = $options['global']
 
 $GLOBALS ['eZAddedClassesList'] = array()
 
else $iniPath = "settings/siteaccess/$siteaccess"
 
 $isIniModified = false
 
 $isQuiet = $script->isQuiet()
 
 $options
 
if(!is_array($xmlFieldsArray)) $pass = 1
 
 $script
 
 $siteaccess = $GLOBALS['eZCurrentAccess']['name']
 
 $totalAttrCount = 0
 
 $xml = new eZXML()
 
 $xmlFieldsArray = $db->arrayQuery( $xmlFieldsQuery, array( "limit" => QUERY_LIMIT ) )
 
 $xmlFieldsQuery
 
 $XMLSchema =& eZXMLSchema::instance()
 
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

cleanup ( $node)
updateAvailableClasses ( $doc,
$element,
$isIniModified,
$contentIniDirect,
$XMLSchema,
  $dumpOnly 
)

Variable Documentation

$classesDumpOnly = $options['dump-only']
$cli =& eZCLI::instance()
$contentIni =& eZINI::instance( 'content.ini' )
$contentIniDirect =& eZINI::instance( 'content.ini.append', $iniPath, null, null, null, true, true )

Referenced by updateAvailableClasses().

$dbHost = $options['db-host']
$dbImpl = $options['db-type']
$dbName = $options['db-database']
$dbPassword = $options['db-password']
$dbUser = $options['db-user']
$global = $options['global']
$GLOBALS['eZAddedClassesList'] = array()
else $iniPath = "settings/siteaccess/$siteaccess"
$isIniModified = false

Referenced by updateAvailableClasses().

$isQuiet = $script->isQuiet()
$options
Initial value:
= $script->getOptions( "[db-host:][db-user:][db-password:][db-database:][db-type:][global][dump-only]",
"",
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",
'global' => "Update global override content.ini.append instead of siteaccess",
'dump-only' => "Check available classes lists, but do not update content.ini. Results will be displayed in the output."
) )
$script
Definition: clusterize.php:132
if (!is_array($xmlFieldsArray)) $pass = 1
$script
Initial value:
=& eZScript::instance( array( 'description' => "\nThis script adds existing 'class' attibute values to 'AvailableClasses' settings of content.ini or just display needed changes in the output.",
'use-session' => false,
'use-modules' => false,
'use-extensions' => false ) )
& instance($settings=array())
Definition: ezscript.php:1011
$siteaccess = $GLOBALS['eZCurrentAccess']['name']
$totalAttrCount = 0
$xml = new eZXML()
$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'"
$XMLSchema =& eZXMLSchema::instance()

Referenced by updateAvailableClasses().

if ($dbHost or $dbName or $dbUser or $dbImpl) else
Initial value:
{
& instance($databaseImplementation=false, $databaseParameters=false, $forceNewInstance=false)
Definition: ezdb.php:148
$db
Definition: convertprice2multiprice.php:80
if(!$db->isConnected())
const QUERY_LIMIT 100