eZPublishCommunityProject(LegacyStack)  2013.6
restorexmlrelations.php File Reference

Namespaces

 update
 File containing the section identifier upgrade script.
 

Functions

 getClassList ()
 Returns the ids of content classes that have an xmltext attribute. More...
 
 getRelatedObjectList (DOMNodeList $domNodeList)
 Extracts ids of embedded/linked objects in an eZXML DOMNodeList. More...
 
 restoreXmlRelations (eZContentObject $object, array $classAttributeIdentifiers)
 Parses the XML for the attributes in $classAttributeIdentifiers, and fixes the relations for $object. More...
 

Variables

 $affectedClasses = getClassList()
 
 $cli = eZCLI::instance()
 
 $languages = eZContentLanguage::fetchList()
 
 $options = $script->getOptions()
 
 $script
 
 $totalUpdatedRelations = 0
 

Function Documentation

getClassList ( )

Returns the ids of content classes that have an xmltext attribute.

Returns
array(contentclass_id=>array(contentclassattribute_id))
getRelatedObjectList ( DOMNodeList  $domNodeList)

Extracts ids of embedded/linked objects in an eZXML DOMNodeList.

Parameters
DOMNodeList$domNodeList
Returns
array

Referenced by restoreXmlRelations().

restoreXmlRelations ( eZContentObject  $object,
array  $classAttributeIdentifiers 
)

Parses the XML for the attributes in $classAttributeIdentifiers, and fixes the relations for $object.

Parameters
eZContentObject$object
array$classAttributeIdentifiers
Returns
int The number of created relations

Variable Documentation

$affectedClasses = getClassList()

Referenced by getClassList().

$cli = eZCLI::instance()
$options = $script->getOptions()
$script
Initial value:
array(
"description" => "eZ Publish missing relations sanitizer script (#19174).",
"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
$totalUpdatedRelations = 0