Свойство | Тип | Описание | |
---|---|---|---|
$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. |
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" |
Результат | mixed |
protected getConfigurator ( ) : s9e\TextFormatter\Configurator | ||
Результат | s9e\TextFormatter\Configurator |
protected getRenderer ( mixed $context = null ) : s9e\TextFormatter\Renderer | ||
$context | mixed | |
Результат | s9e\TextFormatter\Renderer |
protected Repository,Illuminate\Contracts\Cache $cache | ||
Результат | Illuminate\Contracts\Cache\Repository |