PHP 클래스 Flarum\Formatter\Formatter

파일 보기 프로젝트 열기: flarum/core 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$cache Illuminate\Contracts\Cache\Repository
$cacheDir string
$events Illuminate\Contracts\Events\Dispatcher

공개 메소드들

메소드 설명
__construct ( Illuminate\Contracts\Cache\Repository $cache, Illuminate\Contracts\Events\Dispatcher $events, string $cacheDir )
flush ( ) Flush the cache so that the formatter components are regenerated.
getJs ( ) : string Get the formatter JavaScript.
parse ( string $text, mixed $context = null ) : string Parse text.
render ( string $xml, mixed $context = null ) : string Render parsed XML.
unparse ( string $xml ) : string Unparse XML.

보호된 메소드들

메소드 설명
configureExternalLinks ( s9e\TextFormatter\Configurator $configurator )
getComponent ( string $name ) : mixed Get a TextFormatter component.
getConfigurator ( ) : s9e\TextFormatter\Configurator
getParser ( mixed $context = null ) : s9e\TextFormatter\Parser Get the parser.
getRenderer ( mixed $context = null ) : s9e\TextFormatter\Renderer Get the renderer.

메소드 상세

__construct() 공개 메소드

public __construct ( Illuminate\Contracts\Cache\Repository $cache, Illuminate\Contracts\Events\Dispatcher $events, string $cacheDir )
$cache Illuminate\Contracts\Cache\Repository
$events Illuminate\Contracts\Events\Dispatcher
$cacheDir string

flush() 공개 메소드

Flush the cache so that the formatter components are regenerated.
public flush ( )

getComponent() 보호된 메소드

Get a TextFormatter component.
protected getComponent ( string $name ) : mixed
$name string "renderer" or "parser"
리턴 mixed

getConfigurator() 보호된 메소드

protected getConfigurator ( ) : s9e\TextFormatter\Configurator
리턴 s9e\TextFormatter\Configurator

getJs() 공개 메소드

Get the formatter JavaScript.
public getJs ( ) : string
리턴 string

getParser() 보호된 메소드

Get the parser.
protected getParser ( mixed $context = null ) : s9e\TextFormatter\Parser
$context mixed
리턴 s9e\TextFormatter\Parser

getRenderer() 보호된 메소드

Get the renderer.
protected getRenderer ( mixed $context = null ) : s9e\TextFormatter\Renderer
$context mixed
리턴 s9e\TextFormatter\Renderer

parse() 공개 메소드

Parse text.
public parse ( string $text, mixed $context = null ) : string
$text string
$context mixed
리턴 string

render() 공개 메소드

Render parsed XML.
public render ( string $xml, mixed $context = null ) : string
$xml string
$context mixed
리턴 string

unparse() 공개 메소드

Unparse XML.
public unparse ( string $xml ) : string
$xml string
리턴 string

프로퍼티 상세

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

protected Repository,Illuminate\Contracts\Cache $cache
리턴 Illuminate\Contracts\Cache\Repository

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

protected string $cacheDir
리턴 string

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

protected Dispatcher,Illuminate\Contracts\Events $events
리턴 Illuminate\Contracts\Events\Dispatcher