Pionia Core

StaticLocalization

Static config for localization.

Table of Contents

Methods

disableHumanDiffOption()  : void
enableHumanDiffOption()  : void
getHumanDiffOptions()  : int
Return default humanDiff() options (merged flags as integer).
getTranslator()  : TranslatorInterface
Initialize the default translator instance if necessary.
setHumanDiffOptions()  : void
setTranslator()  : void
Set the default translator instance to use.

Methods

disableHumanDiffOption()

public static disableHumanDiffOption(int $humanDiffOption) : void
Parameters
$humanDiffOption : int
Tags
deprecated

To avoid conflict between different third-party libraries, static setters should not be used. You should rather use the ->settings() method.

see
settings

enableHumanDiffOption()

public static enableHumanDiffOption(int $humanDiffOption) : void
Parameters
$humanDiffOption : int
Tags
deprecated

To avoid conflict between different third-party libraries, static setters should not be used. You should rather use the ->settings() method.

see
settings

getHumanDiffOptions()

Return default humanDiff() options (merged flags as integer).

public static getHumanDiffOptions() : int
Return values
int

getTranslator()

Initialize the default translator instance if necessary.

public static getTranslator() : TranslatorInterface
Return values
TranslatorInterface

setHumanDiffOptions()

public static setHumanDiffOptions(int $humanDiffOptions) : void
Parameters
$humanDiffOptions : int
Tags
deprecated

To avoid conflict between different third-party libraries, static setters should not be used. You should rather use the ->settings() method.

see
settings

setTranslator()

Set the default translator instance to use.

public static setTranslator(TranslatorInterface $translator) : void
Parameters
$translator : TranslatorInterface

        
On this page

Search results