actions[$slot] = KTUtil::arrayGet($this->actions, $slot, array()); $this->actions[$slot][$nsname] = array($name, $path, $nsname, $sPlugin); $this->nsnames[$nsname] = array($name, $path, $nsname, $sPlugin); } function getActions($slot) { return KTUtil::arrayGet($this->actions, $slot, array()); } function getActionByNsname($nsname) { return $this->nsnames[$nsname]; } function initializeAction($nsname, $oUser) { list($sClassName, $sPath, $sName, $sPlugin) = $this->getActionByNsname($nsname); if (!empty($sPath)) { require_once($sPath); } $oPluginRegistry =& KTPluginRegistry::getSingleton(); $oPlugin =& $oPluginRegistry->getPlugin($sPlugin); $oAction =& new $sClassName($oUser, $oPlugin); return $oAction; } } ?>