| 1 | <?php |
||
| 8 | abstract class abstractUiElement extends ScriptFeature implements Renderable |
||
| 9 | { |
||
| 10 | protected $posX = 0; |
||
| 11 | protected $posY = 0; |
||
| 12 | protected $posZ = 0; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param int $posX |
||
| 16 | * @param int $posY |
||
| 17 | * @param int $posZ |
||
| 18 | */ |
||
| 19 | public function setPosition($posX = 0, $posY = 0, $posZ = 0) |
||
| 28 | |||
| 29 | public function setX($X) |
||
| 35 | |||
| 36 | public function setY($Y) |
||
| 42 | |||
| 43 | public function setZ($Z) |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Render the XML element |
||
| 52 | * |
||
| 53 | * @param \DOMDocument $domDocument DOMDocument for which the XML element should be rendered |
||
| 54 | * @return \DOMElement |
||
| 55 | */ |
||
| 56 | abstract public function render(\DOMDocument $domDocument); |
||
| 57 | |||
| 58 | } |
||
| 59 |