eZPublish  3.8
updatexmltext.php File Reference

Functions

if($siteAccess) changeSiteAccessSetting (&$siteaccess, $optionData)
 
for($i=0;$i< count($urlList);++$i) findAndReplaceLinks (&$doc, &$node)
 

Variables

 $attributeCount
 
 $attributeLimit = 140
 
 $attributeOffset = 0
 
 $classAttributeIDList = array()
 
 $cli =& eZCLI::instance()
 
 $db =& eZDB::instance()
 
 $dotCount = 0
 
 $dotMax = 70
 
 $dotTotalCount = 0
 
 $endl = $cli->endlineString()
 
 $fixAllAttributes = true
 
 $fixAttribute = true
 
 $fixedURLCount = 0
 
 $fixErrors = true
 
 $fixURL = true
 
 $options
 
 $script
 
 $showSQL = $options['sql'] ? true : false
 
 $siteAccess = $options['siteaccess'] ? $options['siteaccess'] : false
 
 $urlCount = eZURL::fetchListCount()
 
 $urlIDMap = array()
 
 $urlList = eZURL::fetchList()
 
 $urlRefMap = array()
 
 $wrongLinkCount = 0
 
 $wrongURLCount = 0
 
 $xml = new eZXML()
 
 $xmlTypeAttributeList
 

Detailed Description

Takes care of fixing the links in the XML format to use the url ID instead of a HREF. Will also fix all /content/download links to use the new format if any is found. Also if $fixAllAttributes is set to true it will make sure that all XML data is stored in correct charset according to site settings.

Function Documentation

if ($siteAccess) changeSiteAccessSetting ( $siteaccess,
  $optionData 
)
for ($i=0;$i< count($urlList);++$i) findAndReplaceLinks ( $doc,
$node 
)

Variable Documentation

$attributeCount
Initial value:
'length' => 3 ),
false, true )
& fetchListByClassID($id, $version=false, $limit=null, $asObject=true, $asCount=false)
Definition: ezcontentobjectattribute.php:157
$classAttributeIDList
Definition: updateattributefilter.php:93

Referenced by eZTemplate\expandAttributes().

$attributeLimit = 140
$attributeOffset = 0
$classAttributeIDList = array()
$cli =& eZCLI::instance()
$db =& eZDB::instance()
if ($fixAttribute) $dotCount = 0
$dotMax = 70
$dotTotalCount = 0
$endl = $cli->endlineString()
$fixAllAttributes = true
$fixAttribute = true
$fixedURLCount = 0
$fixErrors = true

Referenced by findAndReplaceLinks().

$fixURL = true
$options
Initial value:
= $script->getOptions( "[sql]",
"",
array( 'sql' => "Display sql queries"
) )
$script
Definition: clusterize.php:132
$script
Initial value:
=& eZScript::instance( array( 'description' => ( "eZ publish xml text field updater.\n\n".
"Goes trough all objects with XML fields and corrects any broken XML structures and content." .
"\n" .
"updatexmltext.php" ),
'use-session' => true,
'use-modules' => true,
'use-extensions' => true ) )
& instance($settings=array())
Definition: ezscript.php:1011
$showSQL = $options['sql'] ? true : false
$siteAccess = $options['siteaccess'] ? $options['siteaccess'] : false
$urlIDMap = array()

Referenced by findAndReplaceLinks().

$urlList = eZURL::fetchList()
$urlRefMap = array()

Referenced by findAndReplaceLinks().

$wrongLinkCount = 0
$wrongURLCount = 0
$xml = new eZXML()
$xmlTypeAttributeList
Initial value:
=& eZContentClassAttribute::fetchList( true, array( 'data_type' => 'ezxmltext',
'version' => 0 ) )
& fetchList($asObject=true, $parameters=array())
Definition: ezcontentclassattribute.php:339