PHP Class PMA\libraries\plugins\schema\dia\Dia

See also: https://secure.php.net/manual/en/book.xmlwriter.php
Inheritance: extends XMLWrite\XMLWriter
Show file Open project: phpmyadmin/phpmyadmin

Public Methods

Method Description
__construct ( ) The "Dia" constructor
endDiaDoc ( ) : void Ends Dia Document
showOutput ( string $fileName ) : void Output Dia Document for download
startDiaDoc ( string $paper, float $topMargin, float $bottomMargin, float $leftMargin, float $rightMargin, string $orientation ) : void Starts Dia Document

Method Details

__construct() public method

Upon instantiation This starts writing the Dia XML document
public __construct ( )

endDiaDoc() public method

Ends Dia Document
public endDiaDoc ( ) : void
return void

showOutput() public method

Output Dia Document for download
See also: XMLWriter::flush()
public showOutput ( string $fileName ) : void
$fileName string name of the dia document
return void

startDiaDoc() public method

dia document starts by first initializing dia:diagram tag then dia:diagramdata contains all the attributes that needed to define the document, then finally a Layer starts which holds all the objects.
public startDiaDoc ( string $paper, float $topMargin, float $bottomMargin, float $leftMargin, float $rightMargin, string $orientation ) : void
$paper string the size of the paper/document
$topMargin float top margin of the paper/document in cm
$bottomMargin float bottom margin of the paper/document in cm
$leftMargin float left margin of the paper/document in cm
$rightMargin float right margin of the paper/document in cm
$orientation string orientation of the document, portrait or landscape
return void