29d1d9372f
--HG-- branch : gsoc2012-achievements
21 lines
No EOL
340 B
PHP
21 lines
No EOL
340 B
PHP
<?php
|
|
abstract class RenderNodeIterator {
|
|
protected $nodes = array();
|
|
|
|
function getSize() {
|
|
return sizeof($this->nodes);
|
|
}
|
|
|
|
function getChild($i) {
|
|
return $this->nodes[$i];
|
|
}
|
|
|
|
function isEmpty() {
|
|
return (sizeof($this->nodes) == 0);
|
|
}
|
|
|
|
function getChildren() {
|
|
return $this->nodes;
|
|
}
|
|
}
|
|
?>
|