PHP 클래스 Flarum\Core\Search\AbstractRegexGambit

상속: implements Flarum\Core\Search\GambitInterface
파일 보기 프로젝트 열기: flarum/core 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$pattern string The regex pattern to match the bit against.

공개 메소드들

메소드 설명
apply ( AbstractSearch $search, $bit )

보호된 메소드들

메소드 설명
conditions ( AbstractSearch $search, array $matches, boolean $negate ) : mixed Apply conditions to the search, given that the gambit was matched.
match ( string $bit ) : array Match the bit against this gambit.

메소드 상세

apply() 공개 메소드

public apply ( AbstractSearch $search, $bit )
$search AbstractSearch

conditions() 추상적인 보호된 메소드

Apply conditions to the search, given that the gambit was matched.
abstract protected conditions ( AbstractSearch $search, array $matches, boolean $negate ) : mixed
$search AbstractSearch The search object.
$matches array An array of matches from the search bit.
$negate boolean Whether or not the bit was negated, and thus whether or not the conditions should be negated.
리턴 mixed

match() 보호된 메소드

Match the bit against this gambit.
protected match ( string $bit ) : array
$bit string
리턴 array

프로퍼티 상세

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

The regex pattern to match the bit against.
protected string $pattern
리턴 string