PHP 클래스 Doctrine\OXM\Marshaller\XmlMarshaller

Requires --enable-xmlreader and --enable-xmlwriter (default in most PHP installations)
부터: 2.0
저자: Richard Fullmer ([email protected])
상속: implements Doctrine\OXM\Marshaller\Marshaller
파일 보기 프로젝트 열기: doctrine/oxm 1 사용 예제들

공개 메소드들

메소드 설명
__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

비공개 메소드들

메소드 설명
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 )

메소드 상세

__construct() 공개 메소드

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

getClassMetadataFactory() 공개 메소드

public getClassMetadataFactory ( ) : ClassMetadataFactory
리턴 Doctrine\OXM\Mapping\ClassMetadataFactory

getEncoding() 공개 메소드

public getEncoding ( ) : string
리턴 string

getIndent() 공개 메소드

Return the indentation level. Zero for no indentation.
public getIndent ( ) : integer
리턴 integer

getSchemaVersion() 공개 메소드

public getSchemaVersion ( ) : string
리턴 string

marshalToStream() 공개 메소드

public marshalToStream ( object $mappedObject, string $streamUri ) : boolean | integer
$mappedObject object
$streamUri string
리턴 boolean | integer

marshalToString() 공개 메소드

public marshalToString ( object $mappedObject ) : string
$mappedObject object
리턴 string

setClassMetadataFactory() 공개 메소드

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

setEncoding() 공개 메소드

public setEncoding ( string $encoding ) : void
$encoding string
리턴 void

setIndent() 공개 메소드

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

setSchemaVersion() 공개 메소드

public setSchemaVersion ( string $schemaVersion ) : void
$schemaVersion string
리턴 void

unmarshalFromStream() 공개 메소드

public unmarshalFromStream ( string $streamUri ) : object
$streamUri string
리턴 object

unmarshalFromString() 공개 메소드

public unmarshalFromString ( string $xml ) : object
$xml string
리턴 object