PHP 클래스 Horde_Text_Filter, horde

저자: Chuck Hagenbuch ([email protected])
저자: Jan Schneider ([email protected])
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

공개 메소드들

메소드 설명
factory ( string $driver, array $params = [] ) : Horde_Text_Filter_Base Attempts to return a concrete instance based on $driver.
filter ( string $text, mixed $filters = [], mixed $params = [] ) : string Applies a set of patterns to a block of text.

메소드 상세

factory() 공개 정적인 메소드

Attempts to return a concrete instance based on $driver.
사용 중단:
public static factory ( string $driver, array $params = [] ) : Horde_Text_Filter_Base
$driver string Either a driver name, or the full class name to use (class must extend Horde_Text_Filter_Base).
$params array A hash containing any additional configuration parameters a subclass might need.
리턴 Horde_Text_Filter_Base The newly created concrete instance.

filter() 공개 정적인 메소드

Applies a set of patterns to a block of text.
public static filter ( string $text, mixed $filters = [], mixed $params = [] ) : string
$text string The text to filter.
$filters mixed The list of filters (or a single filter).
$params mixed The list of params to use with each filter.
리턴 string The transformed text.