SVG Schema Class: spaces around = , fixed.

This commit is contained in:
Adnan
2010-07-08 12:23:51 +05:00
parent cd41a8dc28
commit 1ca552a8e1

View File

@@ -48,17 +48,17 @@ class PMA_SVG extends XMLWriter
function setTitle($title) function setTitle($title)
{ {
$this->title=$title; $this->title = $title;
} }
function setAuthor($author) function setAuthor($author)
{ {
$this->author=$author; $this->author = $author;
} }
function setFont($font) function setFont($font)
{ {
$this->font=$font; $this->font = $font;
} }
function getFont() function getFont()
{ {
@@ -67,7 +67,7 @@ class PMA_SVG extends XMLWriter
function setFontSize($fontSize) function setFontSize($fontSize)
{ {
$this->fontSize=$fontSize; $this->fontSize = $fontSize;
} }
function getFontSize() function getFontSize()
@@ -101,7 +101,7 @@ class PMA_SVG extends XMLWriter
print $output; print $output;
} }
function printElement($name,$x,$y,$width='',$height='',$text='',$styles='') function printElement($name,$x,$y,$width = '',$height = '',$text = '',$styles = '')
{ {
$this->startElement($name); $this->startElement($name);
$this->writeAttribute('width',$width); $this->writeAttribute('width',$width);
@@ -354,14 +354,14 @@ class Table_Stats {
'fill:none;stroke:black;' 'fill:none;stroke:black;'
); );
foreach ($this->fields as $field) { foreach ($this->fields as $field) {
$currentCell+=$this->heightCell; $currentCell += $this->heightCell;
$showColor='none'; $showColor = 'none';
if ($showColor) { if ($showColor) {
if (in_array($field, $this->primary)) { if (in_array($field, $this->primary)) {
$showColor='#0c0'; $showColor = '#0c0';
} }
if ($field == $this->displayfield) { if ($field == $this->displayfield) {
$showColor='none'; $showColor = 'none';
} }
} }
$svg->printElement('rect', $this->x,$this->y + $currentCell, $svg->printElement('rect', $this->x,$this->y + $currentCell,
@@ -480,7 +480,7 @@ class Relation_Stats {
global $svg; global $svg;
if ($changeColor) { if ($changeColor) {
$listOfColors=array( $listOfColors = array(
'red', 'red',
'grey', 'grey',
'black', 'black',
@@ -566,7 +566,7 @@ class PMA_Svg_Relation_Schema extends PMA_Export_Relation_Schema
$svg->setFont('Arial'); $svg->setFont('Arial');
$svg->setFontSize('16px'); $svg->setFontSize('16px');
$svg->startSvgDoc('1000px','600px'); $svg->startSvgDoc('1000px','600px');
$alltables=$this->getAllTables($db,$pdf_page_number); $alltables = $this->getAllTables($db,$pdf_page_number);
foreach ($alltables AS $table) { foreach ($alltables AS $table) {
if (!isset($this->tables[$table])) { if (!isset($this->tables[$table])) {