class XmlEncoder

Encodes XML data

@author Jordi Boggiano <j.boggiano@seld.be> @author John Wards <jwards@whiteoctober.co.uk> @author Fabian Vogler <fabian@equivalence.ch>

Hierarchy

Expanded class hierarchy of XmlEncoder

2 files declare their use of XmlEncoder

File

drupal/core/vendor/symfony/serializer/Symfony/Component/Serializer/Encoder/XmlEncoder.php, line 23

Namespace

Symfony\Component\Serializer\Encoder
View source

Members

Namesort descending Modifiers Type Description Overrides
SerializerAwareEncoder::$serializer protected property
SerializerAwareEncoder::setSerializer public function Sets the owning Serializer object Overrides SerializerAwareInterface::setSerializer
XmlEncoder::$dom private property
XmlEncoder::$format private property
XmlEncoder::$rootNodeName private property
XmlEncoder::appendCData final protected function
XmlEncoder::appendDocumentFragment final protected function
XmlEncoder::appendNode private function Selects the type of node to create and appends it to the parent.
XmlEncoder::appendText final protected function
XmlEncoder::appendXMLString final protected function
XmlEncoder::buildXml private function Parse the data and convert it to DOMElements
XmlEncoder::decode public function Decodes a string into PHP data. Overrides DecoderInterface::decode
XmlEncoder::encode public function Encodes data into the given format Overrides EncoderInterface::encode
XmlEncoder::getRootNodeName public function Returns the root node name
XmlEncoder::isElementNameValid final protected function Checks the name is a valid xml element name
XmlEncoder::needsCdataWrapping private function Checks if a value contains any characters which would require CDATA wrapping.
XmlEncoder::parseXml private function Parse the input SimpleXmlElement into an array.
XmlEncoder::resolveXmlRootName private function Get real XML root node name, taking serializer options into account.
XmlEncoder::selectNodeType private function Tests the value being passed and decide what sort of element to create
XmlEncoder::setRootNodeName public function Sets the root node name
XmlEncoder::supportsDecoding public function Checks whether the serializer can decode from given format Overrides DecoderInterface::supportsDecoding
XmlEncoder::supportsEncoding public function Checks whether the serializer can encode to given format Overrides EncoderInterface::supportsEncoding
XmlEncoder::__construct public function Construct new XmlEncoder and allow to change the root node element name.