private function matchPart($rulePart, $queryPart, &$args)
    {
        $match = false;
        $first = isset($rulePart[0]) ? $rulePart[0] : '';
        switch ($first) {
            case '*':
                $match = true;
                break;

            case '{':
                $match = $this->checkPartAsArgument($rulePart, $queryPart, $args);
                break;

            default:
                $match = ($rulePart == $queryPart);
                break;
        }
        return $match;
    }
private function matchPart($rulePart, $queryPart, &$args)
    {
        $match = false;
        $first = isset($rulePart[0]) ? $rulePart[0] : '';
        switch ($first) {
            case '*':
                $match = true;
                break;

            case '{':
                $match = $this->checkPartAsArgument($rulePart, $queryPart, $args);
                break;

            default:
                $match = ($rulePart == $queryPart);
                break;
        }
        return $match;
    }
private function matchPart ( $ rulePart , $ queryPart , & $ args ) { $ match = false ; $ first = isset ( $ rulePart [ 0 ] ) ? $ rulePart [ 0 ] : '' ; switch ( $ first ) { case '*' : $ match = true ; break ; case '{' : $ match = $ this -> checkPartAsArgument ( $ rulePart , $ queryPart , $ args ) ; break ; default : $ match = ( $ rulePart == $ queryPart ) ; break ; } return $ match ; }
Match part of rule and query.

@param string $rulePart   the rule part to check.
@param string $queryPart  the query part to check.
@param array  &$args      add argument to args array if matched

@return boolean
Match part of rule and query .