PHP Class Jarves\Translation\Utils

Afficher le fichier Open project: jarves/jarves

Méthodes publiques

Свойство Type Description
$extractTranslations

Protected Properties

Свойство Type Description
$jarves Jarves\Jarves

Méthodes publiques

Méthode Description
__construct ( Jarves $jarves, Cacher $cacher ) Utils constructor.
evalString ( $p )
extractAdmin ( $admin )
extractFile ( $file ) *
extractFrameworkFields ( $fields )
extractLanguage ( $bundleName )
extractTranslations ( $content )
getPluralForm ( $lang, $onlyAlgorithm = false )
parsePo ( $file )
readDirectory ( string $path ) : array | null
saveLanguage ( string $bundle, string $lang, array $translation ) : boolean
toPoString ( $string )

Méthodes protégées

Méthode Description
getJarves ( ) : Jarves

Method Details

__construct() public méthode

Utils constructor.
public __construct ( Jarves $jarves, Cacher $cacher )
$jarves Jarves\Jarves
$cacher Jarves\Cache\Cacher

evalString() public static méthode

public static evalString ( $p )

extractAdmin() public static méthode

public static extractAdmin ( $admin )

extractFile() public méthode

extracts the calls of the translation methods
public extractFile ( $file )

extractFrameworkFields() public static méthode

public static extractFrameworkFields ( $fields )

extractLanguage() public méthode

public extractLanguage ( $bundleName )

extractTranslations() public méthode

public extractTranslations ( $content )

getJarves() protected méthode

protected getJarves ( ) : Jarves
Résultat Jarves\Jarves

getPluralForm() public méthode

public getPluralForm ( $lang, $onlyAlgorithm = false )

parsePo() public méthode

public parsePo ( $file )

readDirectory() public méthode

public readDirectory ( string $path ) : array | null
$path string
Résultat array | null

saveLanguage() public méthode

public saveLanguage ( string $bundle, string $lang, array $translation ) : boolean
$bundle string
$lang string
$translation array
Résultat boolean

toPoString() public static méthode

public static toPoString ( $string )

Property Details

$extractTranslations public_oe static_oe property

public static $extractTranslations

$jarves protected_oe property

protected Jarves,Jarves $jarves
Résultat Jarves\Jarves