khanat-opennel-code/code/web/app/app_achievements/class/Node_abstract.php

32 lines
546 B
PHP
Raw Normal View History

<?php
abstract class Node {
2012-07-02 16:55:13 +00:00
/*---------------------------
This class provides basic functionality common to nodes.
2012-07-02 16:55:13 +00:00
Every node has an id and a parent.
2012-07-02 16:55:13 +00:00
---------------------------*/
protected $id;
protected $parent;
function Node() {
// dummy constructor
}
final function getID() {
return $this->id;
}
final function getParent() {
return $this->parent;
}
final function setID($id) {
$this->id = $id;
}
final function setParent($p) {
$this->parent = $p;
}
}
?>