PHP 클래스 Horde_Text_Filter_Text2html, horde

Copyright 2002-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.
저자: Chuck Hagenbuch ([email protected])
저자: Jan Schneider ([email protected])
저자: Michael Slusarz ([email protected])
상속: extends Horde_Text_Filter_Base
파일 보기 프로젝트 열기: horde/horde

보호된 프로퍼티들

프로퍼티 타입 설명
$_params array Filter parameters.

공개 메소드들

메소드 설명
__construct ( array $params = [] ) Constructor.
preProcess ( mixed $text ) : string Executes any code necessary before applying the filter patterns.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( array $params = [] )
$params array Parameters specific to this driver:
  • charset: (string) The charset to use for htmlspecialchars() calls.
  • class: (string) See Horde_Text_Filter_Linkurls::.
  • emails: (array) TODO
  • flowed: (string) For flowed text, the HTML blockquote tag to insert before each level.
  • linkurls: (array) TODO
  • parselevel: (integer) The parselevel of the output.
    • PASSTHRU: No action. Pass-through. Included for completeness.
    • SYNTAX: Allow full html, also do line-breaks, in-lining, syntax-parsing.
    • MICRO: Micro html (only line-breaks, in-line linking).
    • MICRO_LINKURL: Micro html (only line-breaks, in-line linking of URLS; no email addresses are linked).
    • NOHTML: No html (all stripped, only line-breaks).
    • NOHTML_NOBREAK: No html whatsoever, no line breaks added. Included for completeness.
  • space2html: (array) TODO

preProcess() 공개 메소드

Executes any code necessary before applying the filter patterns.
public preProcess ( mixed $text ) : string
$text mixed The text before the filtering. Either a string or a Horde_Text_Flowed object (since 1.1.0).
리턴 string The modified text.

프로퍼티 상세

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

Filter parameters.
protected array $_params
리턴 array