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.
파일 보기
프로젝트 열기: 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. |
|
보호된 메소드들
메소드 상세
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. |
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. |
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. |