added ALIGN_CENTER

This commit is contained in:
Roland Gruber 2010-09-29 16:47:08 +00:00
parent 38fd16c7c9
commit 24ed4cdc97
1 changed files with 4 additions and 0 deletions

View File

@ -42,6 +42,7 @@ abstract class htmlElement {
const ALIGN_LEFT = 1;
const ALIGN_RIGHT = 2;
const ALIGN_BOTTOM = 3;
const ALIGN_CENTER = 4;
/** alignment when inside a table */
public $alignment = null;
@ -84,6 +85,9 @@ abstract class htmlElement {
case htmlElement::ALIGN_RIGHT:
$align = 'align="right"';
break;
case htmlElement::ALIGN_CENTER:
$align = 'align="center"';
break;
}
}
return $align;