Property | Type | Description | |
---|---|---|---|
$cache | Illuminate\Contracts\Cache\Repository | ||
$cacheDir | string | ||
$events | Illuminate\Contracts\Events\Dispatcher |
Method | Description | |
---|---|---|
__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. |
Method | Description | |
---|---|---|
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. |
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 |
protected configureExternalLinks ( s9e\TextFormatter\Configurator $configurator ) | ||
$configurator | s9e\TextFormatter\Configurator |
public flush ( ) |
protected getComponent ( string $name ) : mixed | ||
$name | string | "renderer" or "parser" |
return | mixed |
protected getConfigurator ( ) : s9e\TextFormatter\Configurator | ||
return | s9e\TextFormatter\Configurator |
protected getRenderer ( mixed $context = null ) : s9e\TextFormatter\Renderer | ||
$context | mixed | |
return | s9e\TextFormatter\Renderer |
protected Repository,Illuminate\Contracts\Cache $cache | ||
return | Illuminate\Contracts\Cache\Repository |