diff --git a/lib/actions/actionregistry.inc.php b/lib/actions/actionregistry.inc.php index 2ea9bea..585389b 100644 --- a/lib/actions/actionregistry.inc.php +++ b/lib/actions/actionregistry.inc.php @@ -14,11 +14,16 @@ class KTActionRegistry { function registerAction($slot, $name, $nsname, $path = "") { $this->actions[$slot] = KTUtil::arrayGet($this->actions, $slot, array()); $this->actions[$slot][$nsname] = array($name, $path, $nsname); + $this->nsnames[$nsname] = array($name, $path, $nsname); } function getActions($slot) { return $this->actions[$slot]; } + + function getActionByNsname($nsname) { + return $this->nsnames[$nsname]; + } } ?>