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.
Afficher le fichier Open project: doctrine/oxm Class Usage Examples

Protected Properties

Свойство Type Description
$cursor XmlWriter
$marshaller Doctrine\OXM\Marshaller\XmlMarshaller
$streamUri string | null The stream to work with. Null assumes in-memory processing.

Méthodes publiques

Méthode 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

Méthode Description
initialize ( )
needsCdataWrapping ( $value )

Method Details

__construct() public méthode

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

endElement() public méthode

public endElement ( )

flush() public méthode

public flush ( )

startElement() public méthode

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

writeAttribute() public méthode

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

writeElement() public méthode

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

writeNamespace() public méthode

public writeNamespace ( $url, $prefix = null )

writeValue() public méthode

public writeValue ( $value )

Property Details

$cursor protected_oe property

protected XmlWriter $cursor
Résultat XmlWriter

$marshaller protected_oe property

protected XmlMarshaller,Doctrine\OXM\Marshaller $marshaller
Résultat Doctrine\OXM\Marshaller\XmlMarshaller

$streamUri protected_oe property

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