PHP Class Sonata\Exporter\Writer\XmlWriter

Author: Thomas Rabaix ([email protected])
Inheritance: implements Sonata\Exporter\Writer\TypedWriterInterface
Show file Open project: sonata-project/exporter Class Usage Examples

Protected Properties

Property Type Description
$childElement string
$file resource
$filename string
$mainElement string
$position integer

Public Methods

Method Description
__construct ( string $filename, string $mainElement = 'datas', string $childElement = 'data' )
close ( )
getDefaultMimeType ( )
getFormat ( )
open ( )
write ( array $data )

Protected Methods

Method Description
generateNode ( string $name, string $value )

Method Details

__construct() public method

public __construct ( string $filename, string $mainElement = 'datas', string $childElement = 'data' )
$filename string
$mainElement string
$childElement string

close() public method

public close ( )

generateNode() protected method

protected generateNode ( string $name, string $value )
$name string
$value string

getDefaultMimeType() final public method

final public getDefaultMimeType ( )

getFormat() final public method

final public getFormat ( )

open() public method

public open ( )

write() public method

public write ( array $data )
$data array

Property Details

$childElement protected property

protected string $childElement
return string

$file protected property

protected resource $file
return resource

$filename protected property

protected string $filename
return string

$mainElement protected property

protected string $mainElement
return string

$position protected property

protected int $position
return integer