concrete/src/Database/Query/LikeBuilder.php
protected function getEscapeMap()
    {
        if ($this->escapeMap === null) {
            $escapeMap = [
                $this->anyCharacterWildcard => $this->escapeCharacter . $this->anyCharacterWildcard,
                $this->oneCharacterWildcard => $this->escapeCharacter . $this->oneCharacterWildcard,
                $this->escapeCharacter => $this->escapeCharacter . $this->escapeCharacter,
            ];
            foreach ($this->otherWildcards as $otherWildcard) {
                $escapeMap[$otherWildcard] = $this->escapeCharacter . $otherWildcard;
            }
            $this->escapeMap = $escapeMap;
        }

        return $this->escapeMap;
    }
protected function getEscapeMap()
    {
        if ($this->escapeMap === null) {
            $escapeMap = [
                $this->anyCharacterWildcard => $this->escapeCharacter . $this->anyCharacterWildcard,
                $this->oneCharacterWildcard => $this->escapeCharacter . $this->oneCharacterWildcard,
                $this->escapeCharacter => $this->escapeCharacter . $this->escapeCharacter,
            ];
            foreach ($this->otherWildcards as $otherWildcard) {
                $escapeMap[$otherWildcard] = $this->escapeCharacter . $otherWildcard;
            }
            $this->escapeMap = $escapeMap;
        }

        return $this->escapeMap;
    }
protected function getEscapeMap ( ) { if ( $ this -> escapeMap === null ) { $ escapeMap = [ $ this -> anyCharacterWildcard => $ this -> escapeCharacter . $ this -> anyCharacterWildcard , $ this -> oneCharacterWildcard => $ this -> escapeCharacter . $ this -> oneCharacterWildcard , $ this -> escapeCharacter => $ this -> escapeCharacter . $ this -> escapeCharacter , ] ; foreach ( $ this -> otherWildcards as $ otherWildcard ) { $ escapeMap [ $ otherWildcard ] = $ this -> escapeCharacter . $ otherWildcard ; } $ this -> escapeMap = $ escapeMap ; } return $ this -> escapeMap ; }
Get the string mapping used to escape special characters.

@return array
Get the string mapping used to escape special characters .