public function hasSubstring( $pSubstring ) {
        if ( strlen( $pSubstring ) < 1 ) {
            return -1;
        }

        return $this->findSubstring( $this->nodes[$this->root], $pSubstring );
    }
public function hasSubstring( $pSubstring ) {
        if ( strlen( $pSubstring ) < 1 ) {
            return -1;
        }

        return $this->findSubstring( $this->nodes[$this->root], $pSubstring );
    }
public function hasSubstring ( $ pSubstring ) { if ( strlen ( $ pSubstring ) < 1 ) { return - 1 ; } return $ this -> findSubstring ( $ this -> nodes [ $ this -> root ] , $ pSubstring ) ; }
Scan tree for occurences of the given substring.

@param  string  $pSubstring String to check whether it is contained or not
@return integer             Returns 1 if found, -1 if not
Scan tree for occurences of the given substring .