private function checkBasicRule($rule, $path)
    {
        $rule = $this->prepareRegexRule($this->encode_url($rule));
        // change @ to \@
        $escaped = strtr($rule, array('@' => '\@'));
        // match result
        if (preg_match('@' . $escaped . '@', $path)) {
	        $this->log[] = 'Rule match: Path';
	        return true;
        }
        return false;
    }
private function checkBasicRule($rule, $path)
    {
        $rule = $this->prepareRegexRule($this->encode_url($rule));
        // change @ to \@
        $escaped = strtr($rule, array('@' => '\@'));
        // match result
        if (preg_match('@' . $escaped . '@', $path)) {
	        $this->log[] = 'Rule match: Path';
	        return true;
        }
        return false;
    }
private function checkBasicRule ( $ rule , $ path ) { $ rule = $ this -> prepareRegexRule ( $ this -> encode_url ( $ rule ) ) ; // change @ to \@ $ escaped = strtr ( $ rule , array ( '@' => '\@' ) ) ; // match result if ( preg_match ( '@' . $ escaped . '@' , $ path ) ) { $ this -> log [ ] = 'Rule match: Path' ; return true ; } return false ; }
Check basic rule

@param  string $rule
@param  string $path
@return bool
Check basic rule