PHP 클래스 Horde_Core_Factory_TextFilter, horde

Copyright 2010-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
저자: Michael Slusarz ([email protected])
상속: extends Horde_Core_Factory_Base
파일 보기 프로젝트 열기: horde/horde

공개 메소드들

메소드 설명
create ( string $driver, array $params = [] ) : Horde_Text_Filter_Base Return the Horde_Text_Filter_Base:: instance.
filter ( string $text, mixed $filters = [], mixed $params = [] ) : string Applies a set of patterns to a block of text.

보호된 메소드들

메소드 설명
_getDriver ( string $driver, array $params ) : array Gets the driver/params for a given base Horde_Text_Filter driver.

메소드 상세

_getDriver() 보호된 메소드

Gets the driver/params for a given base Horde_Text_Filter driver.
protected _getDriver ( string $driver, array $params ) : array
$driver string Either a driver name, or the full class name to use.
$params array A hash containing any additional configuration parameters a subclass might need.
리턴 array Driver as the first value, params list as the second.

create() 공개 메소드

Return the Horde_Text_Filter_Base:: instance.
public create ( string $driver, array $params = [] ) : Horde_Text_Filter_Base
$driver string Either a driver name, or the full class name to use.
$params array A hash containing any additional configuration parameters a subclass might need.
리턴 Horde_Text_Filter_Base The singleton instance.

filter() 공개 메소드

Applies a set of patterns to a block of text.
public 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.