PHP Class Kdyby\Translation\Diagnostics\Panel

Author: Filip Procházka ([email protected])
Inheritance: extends Nette\Object, implements Tracy\IBarPanel
Datei anzeigen Open project: kdyby/translation Class Usage Examples

Public Methods

Method Description
__construct ( string $rootDir )
addIgnoredResource ( string $format, string $resource, string $locale, string $domain )
addResource ( string $format, string $resource, string $locale, string $domain )
choiceError ( Exception | Throwable $e, $domain )
getPanel ( ) : string Renders HTML code for custom panel.
getTab ( ) : string Renders HTML code for custom tab.
markUntranslated ( string $id, string $domain )
onRequest ( Application $app, Nette\Application\Request $request )
register ( Translator $translator )
registerBluescreen ( )
renderException ( $e = NULL )
setLocaleResolvers ( array $resolvers )
setLocaleWhitelist ( $whitelist )

Private Methods

Method Description
editorLink ( $file, $line, $text = NULL ) : Nette\Utils\Html | string Returns link to editor.
renderResources ( $resourcesMap )
renderUntranslated ( )

Method Details

__construct() public method

public __construct ( string $rootDir )
$rootDir string

addIgnoredResource() public method

public addIgnoredResource ( string $format, string $resource, string $locale, string $domain )
$format string
$resource string
$locale string
$domain string

addResource() public method

public addResource ( string $format, string $resource, string $locale, string $domain )
$format string
$resource string
$locale string
$domain string

choiceError() public method

public choiceError ( Exception | Throwable $e, $domain )
$e Exception | Throwable

getPanel() public method

Renders HTML code for custom panel.
public getPanel ( ) : string
return string

getTab() public method

Renders HTML code for custom tab.
public getTab ( ) : string
return string

markUntranslated() public method

public markUntranslated ( string $id, string $domain )
$id string
$domain string

onRequest() public method

public onRequest ( Application $app, Nette\Application\Request $request )
$app Nette\Application\Application
$request Nette\Application\Request

register() public method

public register ( Translator $translator )
$translator Kdyby\Translation\Translator

registerBluescreen() public static method

public static registerBluescreen ( )

renderException() public static method

public static renderException ( $e = NULL )

setLocaleResolvers() public method

public setLocaleResolvers ( array $resolvers )
$resolvers array

setLocaleWhitelist() public method

public setLocaleWhitelist ( $whitelist )