PHP 클래스 TeamTNT\TNTSearch\Support\Highlighter

파일 보기 프로젝트 열기: teamtnt/tntsearch 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$options

공개 메소드들

메소드 설명
_determineSnipLocation ( $locations, $prevcount ) first as will be equally distant.
_extractLocations ( $words, $fulltext ) unless you decide to make the words unique before passing in
extractRelevant ( $words, $fulltext, $rellength = 300, $prevcount = 50, $indicator = '...' ) in the middle of the extract
highlight ( $text, $needle, $tag = 'em', $options = [] )

메소드 상세

_determineSnipLocation() 공개 메소드

first as will be equally distant.
public _determineSnipLocation ( $locations, $prevcount )

_extractLocations() 공개 메소드

unless you decide to make the words unique before passing in
public _extractLocations ( $words, $fulltext )

extractRelevant() 공개 메소드

in the middle of the extract
public extractRelevant ( $words, $fulltext, $rellength = 300, $prevcount = 50, $indicator = '...' )

highlight() 공개 메소드

public highlight ( $text, $needle, $tag = 'em', $options = [] )

프로퍼티 상세

$options 보호되어 있는 프로퍼티

protected $options