mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-10 01:09:50 +00:00
parent
a42d6d9a76
commit
a02851452b
3 changed files with 3 additions and 13 deletions
|
@ -1,11 +0,0 @@
|
||||||
<?php
|
|
||||||
interface AdmDispatcher {
|
|
||||||
/*---------------------------
|
|
||||||
The admin dispatcher allows us to perform operations on child nodes.
|
|
||||||
---------------------------*/
|
|
||||||
function insertNode(&$n);
|
|
||||||
function removeNode($id);
|
|
||||||
function updateNode($id,$data);
|
|
||||||
function getNode($id);
|
|
||||||
}
|
|
||||||
?>
|
|
|
@ -1,5 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
class AdmMenu extends AchMenu implements AdmDispatcher {
|
class AdmMenu extends AchMenu {
|
||||||
|
use Dispatcher;
|
||||||
|
|
||||||
function AdmMenu($open) {
|
function AdmMenu($open) {
|
||||||
parent::__construct($open);
|
parent::__construct($open);
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
$this->nodes[] = $n;
|
$this->nodes[] = $n;
|
||||||
}
|
}
|
||||||
|
|
||||||
function removeNode($id) {
|
function removeNode($id) {#NAMENSKONFLIKT!!
|
||||||
$res = $this->getNode($id);
|
$res = $this->getNode($id);
|
||||||
if($res != null) {
|
if($res != null) {
|
||||||
$res->delete_me();
|
$res->delete_me();
|
||||||
|
|
Loading…
Reference in a new issue