PHP Class Doctrine\OXM\Marshaller\XmlMarshaller

Requires --enable-xmlreader and --enable-xmlwriter (default in most PHP installations)
Since: 2.0
Author: Richard Fullmer ([email protected])
Inheritance: implements Doctrine\OXM\Marshaller\Marshaller
Afficher le fichier Open project: doctrine/oxm Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( ClassMetadataFactory $classMetadataFactory )
getClassMetadataFactory ( ) : ClassMetadataFactory
getEncoding ( ) : string
getIndent ( ) : integer Return the indentation level. Zero for no indentation.
getSchemaVersion ( ) : string
marshalToStream ( object $mappedObject, string $streamUri ) : boolean | integer
marshalToString ( object $mappedObject ) : string
setClassMetadataFactory ( ClassMetadataFactory $classMetadataFactory )
setEncoding ( string $encoding ) : void
setIndent ( integer $indent ) Set the marshallers output indentation level. Zero for no indentation.
setSchemaVersion ( string $schemaVersion ) : void
unmarshalFromStream ( string $streamUri ) : object
unmarshalFromString ( string $xml ) : object

Private Methods

Méthode Description
doMarshal ( object $mappedObject, WriterHelper $writer ) : void INTERNAL: Performance sensitive method
doUnmarshal ( XMLReader $cursor ) : object INTERNAL: Performance sensitive method
writeAttribute ( WriterHelper $writer, ClassMetadata $classMetadata, string $fieldName, mixed $fieldValue )
writeElement ( WriterHelper $writer, ClassMetadata $classMetadata, string $fieldName, mixed $fieldValue )
writeText ( WriterHelper $writer, ClassMetadata $classMetadata, string $fieldName, mixed $fieldValue )

Method Details

__construct() public méthode

public __construct ( ClassMetadataFactory $classMetadataFactory )
$classMetadataFactory Doctrine\OXM\Mapping\ClassMetadataFactory

getClassMetadataFactory() public méthode

public getClassMetadataFactory ( ) : ClassMetadataFactory
Résultat Doctrine\OXM\Mapping\ClassMetadataFactory

getEncoding() public méthode

public getEncoding ( ) : string
Résultat string

getIndent() public méthode

Return the indentation level. Zero for no indentation.
public getIndent ( ) : integer
Résultat integer

getSchemaVersion() public méthode

public getSchemaVersion ( ) : string
Résultat string

marshalToStream() public méthode

public marshalToStream ( object $mappedObject, string $streamUri ) : boolean | integer
$mappedObject object
$streamUri string
Résultat boolean | integer

marshalToString() public méthode

public marshalToString ( object $mappedObject ) : string
$mappedObject object
Résultat string

setClassMetadataFactory() public méthode

public setClassMetadataFactory ( ClassMetadataFactory $classMetadataFactory )
$classMetadataFactory Doctrine\OXM\Mapping\ClassMetadataFactory

setEncoding() public méthode

public setEncoding ( string $encoding ) : void
$encoding string
Résultat void

setIndent() public méthode

Set the marshallers output indentation level. Zero for no indentation.
public setIndent ( integer $indent )
$indent integer

setSchemaVersion() public méthode

public setSchemaVersion ( string $schemaVersion ) : void
$schemaVersion string
Résultat void

unmarshalFromStream() public méthode

public unmarshalFromStream ( string $streamUri ) : object
$streamUri string
Résultat object

unmarshalFromString() public méthode

public unmarshalFromString ( string $xml ) : object
$xml string
Résultat object