static function getNewAction($name, $params) { if (empty(ActionFactory::$loaded_actions)) { ActionFactory::loadFunctionList(); } if (isset(ActionFactory::$loaded_actions[$name])) { require_once ActionFactory::$loaded_actions[$name]['file']; $class = ActionFactory::$loaded_actions[$name]['class']; return new $class($params); } return false; }