public static function add($actionOrFilterName, $filterName = null) {
        if (empty($filterName)) {
            $filterName = $actionOrFilterName;
            $actionOrFilterName = '.';
        }

        if ($actionOrFilterName != '.' && !self::$actionContext->actionNameEquals($actionOrFilterName)) {
            return;
        }

        if (!isset(self::$filters[$actionOrFilterName])) {
            self::$filters[$actionOrFilterName] = array();
        }

        self::$filters[$actionOrFilterName][] = $filterName;
    }