Think/Dispatcher.php
private static function getAction($var, $urlCase)
    {
        $action = !empty($_POST[$var]) ?
            $_POST[$var] :
            (!empty($_GET[$var]) ? $_GET[$var] : C('DEFAULT_ACTION'));
        unset($_POST[$var], $_GET[$var]);

        return strip_tags($urlCase ? strtolower($action) : $action);
    }
private static function getAction($var, $urlCase)
    {
        $action = !empty($_POST[$var]) ?
            $_POST[$var] :
            (!empty($_GET[$var]) ? $_GET[$var] : C('DEFAULT_ACTION'));
        unset($_POST[$var], $_GET[$var]);

        return strip_tags($urlCase ? strtolower($action) : $action);
    }
获得实际的操作名称

@param      $var
@param bool $urlCase

@return mixed|string