PHP Class Doctrine\OXM\Marshaller\Helper\WriterHelper

This class helps simplify some of the logic behind writing xml with the eccentricities of the XmlWriter interface. It's calls inherit the same stateful considerations that are found while working directly with XmlWriter.
Mostra file Open project: doctrine/oxm Class Usage Examples

Protected Properties

Property Type Description
$cursor XmlWriter
$marshaller Doctrine\OXM\Marshaller\XmlMarshaller
$streamUri string | null The stream to work with. Null assumes in-memory processing.

Public Methods

Method Description
__construct ( XmlMarshaller $marshaller, $streamUri = null )
endElement ( )
flush ( )
startElement ( $name, $prefix = null, $url = null )
writeAttribute ( $name, $value, $prefix = null, $url = null )
writeElement ( $name, $value, $prefix = null, $url = null )
writeNamespace ( $url, $prefix = null )
writeValue ( $value )

Private Methods

Method Description
initialize ( )
needsCdataWrapping ( $value )

Method Details

__construct() public method

public __construct ( XmlMarshaller $marshaller, $streamUri = null )
$marshaller Doctrine\OXM\Marshaller\XmlMarshaller

endElement() public method

public endElement ( )

flush() public method

public flush ( )

startElement() public method

public startElement ( $name, $prefix = null, $url = null )

writeAttribute() public method

public writeAttribute ( $name, $value, $prefix = null, $url = null )

writeElement() public method

public writeElement ( $name, $value, $prefix = null, $url = null )

writeNamespace() public method

public writeNamespace ( $url, $prefix = null )

writeValue() public method

public writeValue ( $value )

Property Details

$cursor protected_oe property

protected XmlWriter $cursor
return XmlWriter

$marshaller protected_oe property

protected XmlMarshaller,Doctrine\OXM\Marshaller $marshaller
return Doctrine\OXM\Marshaller\XmlMarshaller

$streamUri protected_oe property

The stream to work with. Null assumes in-memory processing.
protected string|null $streamUri
return string | null