From f7b48118f21bc9d55051fdfc9231338f37498ae5 Mon Sep 17 00:00:00 2001 From: Neil Blakey-Milner Date: Tue, 8 Nov 2005 15:04:13 +0000 Subject: [PATCH] Allow for actions to be looked up by nsname. --- lib/actions/actionregistry.inc.php | 5 +++++ 1 file changed, 5 insertions(+), 0 deletions(-) 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]; + } } ?> -- libgit2 0.21.4