added ALIGN_CENTER
This commit is contained in:
parent
38fd16c7c9
commit
24ed4cdc97
|
@ -42,6 +42,7 @@ abstract class htmlElement {
|
||||||
const ALIGN_LEFT = 1;
|
const ALIGN_LEFT = 1;
|
||||||
const ALIGN_RIGHT = 2;
|
const ALIGN_RIGHT = 2;
|
||||||
const ALIGN_BOTTOM = 3;
|
const ALIGN_BOTTOM = 3;
|
||||||
|
const ALIGN_CENTER = 4;
|
||||||
|
|
||||||
/** alignment when inside a table */
|
/** alignment when inside a table */
|
||||||
public $alignment = null;
|
public $alignment = null;
|
||||||
|
@ -84,6 +85,9 @@ abstract class htmlElement {
|
||||||
case htmlElement::ALIGN_RIGHT:
|
case htmlElement::ALIGN_RIGHT:
|
||||||
$align = 'align="right"';
|
$align = 'align="right"';
|
||||||
break;
|
break;
|
||||||
|
case htmlElement::ALIGN_CENTER:
|
||||||
|
$align = 'align="center"';
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $align;
|
return $align;
|
||||||
|
|
Loading…
Reference in New Issue