/** * Check if it is a public action or not. * * @param string $action The action * @return bool If it's a valid action or not. */ public static function isPublicAction($action) { $actions = Frapi_Internal::getCachedActions('public'); if (is_array($actions) && !in_array($action, $actions)) { return false; } return true; }