khanat-opennel-code/code/web/app/app_achievements/class/RenderNodeIteraor_abstract.php
SirCotare 8886ed94b7 #1470 interface for inheritable child generation added
--HG--
branch : gsoc2012-achievements
2012-06-21 22:28:51 +02:00

21 lines
No EOL
360 B
PHP

<?php
abstract class RenderNodeIterator implements Parentum {
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;
}
}
?>