PHP Class Vsch\TranslationManager\Manager

Afficher le fichier Open project: vsch/laravel-translation-manager Class Usage Examples

Protected Properties

Свойство Type Description
$app Illuminate\Foundation\Application
$augmentedGroupList
$cache
$cacheIsDirty
$cacheTransKey
$config
$default_connection
$default_indatabase_publish
$default_translation_connection
$errors
$events Illuminate\Events\Dispatcher
$files Illuminate\Filesystem\Filesystem
$groupList
$imported
$indatabase_publish
$persistentPrefix
$preloadedGroup
$preloadedGroupKeys
$preloadedGroupLocales
$translation * @var $translation Translation
$usageCache
$usageCacheIsDirty
$usageCacheTransKey
$zipExporting ZipArchive

Méthodes publiques

Méthode Description
__construct ( Illuminate\Foundation\Application $app, Illuminate\Filesystem\Filesystem $files, Illuminate\Events\Dispatcher $events, Translation $translation )
afterRoute ( $request, $response )
areUserLocalesEnabled ( ) : boolean
cache ( )
cacheEnabled ( )
cacheGroupTranslations ( $group, $locales, $translations )
cacheKey ( $key, $locale )
cachePrefix ( )
cacheTranslation ( $key, $value, $locale )
cacheUsageInfo ( $key, $value, $locale )
cachedTranslation ( $key, $locale )
cachedUsageInfo ( $key, $locale )
cleanTranslations ( )
clearCache ( $groups = null )
clearErrors ( )
clearUsageCache ( $clearDatabase, $groups = null )
computeFileLines ( $fileContents )
config ( $key = null, $default = null )
errors ( )
excludedPageEditGroup ( $group )
exportAllTranslations ( $recursing )
exportTranslations ( $group, $recursing )
findTranslations ( $path = null )
firstOrCreateTranslation ( $attributes = null )
firstOrNewTranslation ( $attributes = null )
fixGroup ( $group )
getConnection ( )
getConnectionInDatabasePublish ( $connection )
getConnectionInfo ( $connection, $key = null, $default = null )
getConnectionName ( )
getGroupAugmentedList ( )
getGroupList ( )
getTranslation ( ) : Translation
getTranslationsTableName ( )
getUserListConnection ( $connection )
getUserListProvider ( $connection )
getUserLocalesTableName ( )
importTranslations ( $replace, $groups = null )
inDatabasePublishing ( ) : boolean
isDefaultTranslationConnection ( $connection ) : boolean
makeDirPath ( $path )
missingKey ( $namespace, $group, $key, null $locale = null, boolean $useLottery = false, boolean $findOrNew = false ) : Translation | null
offsetLine ( $lines, $offset )
saveCache ( )
saveUsageCache ( )
setConnectionName ( $connection = null )
truncateTranslations ( $group = null )
usageCache ( )
usageCacheKey ( $key, $locale )
usageCachePrefix ( )
usingKey ( $namespace, $group, $key, null $locale = null, boolean $useLottery = false )
zipTranslations ( $groups )

Méthodes protégées

Méthode Description
dbValue ( $value, $nullValue = 'NULL' )
groupKeyList ( $key )
importTranslationFile ( $locale, $db_group, $translations, $replace )
makeTree ( $translations )

Method Details

__construct() public méthode

public __construct ( Illuminate\Foundation\Application $app, Illuminate\Filesystem\Filesystem $files, Illuminate\Events\Dispatcher $events, Translation $translation )
$app Illuminate\Foundation\Application
$files Illuminate\Filesystem\Filesystem
$events Illuminate\Events\Dispatcher
$translation Vsch\TranslationManager\Models\Translation

afterRoute() public méthode

public afterRoute ( $request, $response )

areUserLocalesEnabled() public méthode

public areUserLocalesEnabled ( ) : boolean
Résultat boolean

cache() public méthode

public cache ( )

cacheEnabled() public méthode

public cacheEnabled ( )

cacheGroupTranslations() public méthode

public cacheGroupTranslations ( $group, $locales, $translations )

cacheKey() public méthode

public cacheKey ( $key, $locale )

cachePrefix() public méthode

public cachePrefix ( )

cacheTranslation() public méthode

public cacheTranslation ( $key, $value, $locale )

cacheUsageInfo() public méthode

public cacheUsageInfo ( $key, $value, $locale )

cachedTranslation() public méthode

public cachedTranslation ( $key, $locale )

cachedUsageInfo() public méthode

public cachedUsageInfo ( $key, $locale )

cleanTranslations() public méthode

public cleanTranslations ( )

clearCache() public méthode

public clearCache ( $groups = null )

clearErrors() public méthode

public clearErrors ( )

clearUsageCache() public méthode

public clearUsageCache ( $clearDatabase, $groups = null )

computeFileLines() public static méthode

public static computeFileLines ( $fileContents )

config() public méthode

public config ( $key = null, $default = null )

dbValue() protected static méthode

protected static dbValue ( $value, $nullValue = 'NULL' )

errors() public méthode

public errors ( )

excludedPageEditGroup() public méthode

public excludedPageEditGroup ( $group )

exportAllTranslations() public méthode

public exportAllTranslations ( $recursing )

exportTranslations() public méthode

public exportTranslations ( $group, $recursing )

findTranslations() public méthode

public findTranslations ( $path = null )

firstOrCreateTranslation() public méthode

public firstOrCreateTranslation ( $attributes = null )

firstOrNewTranslation() public méthode

public firstOrNewTranslation ( $attributes = null )

fixGroup() public static méthode

public static fixGroup ( $group )

getConnection() public méthode

public getConnection ( )

getConnectionInDatabasePublish() public méthode

public getConnectionInDatabasePublish ( $connection )

getConnectionInfo() public méthode

public getConnectionInfo ( $connection, $key = null, $default = null )

getConnectionName() public méthode

public getConnectionName ( )

getGroupAugmentedList() public méthode

getGroupList() public méthode

public getGroupList ( )

getTranslation() public méthode

public getTranslation ( ) : Translation
Résultat Vsch\TranslationManager\Models\Translation

getTranslationsTableName() public méthode

getUserListConnection() public méthode

public getUserListConnection ( $connection )

getUserListProvider() public méthode

public getUserListProvider ( $connection )

getUserLocalesTableName() public méthode

groupKeyList() protected static méthode

protected static groupKeyList ( $key )

importTranslationFile() protected méthode

protected importTranslationFile ( $locale, $db_group, $translations, $replace )
$locale
$db_group
$translations
$replace

importTranslations() public méthode

public importTranslations ( $replace, $groups = null )

inDatabasePublishing() public méthode

public inDatabasePublishing ( ) : boolean
Résultat boolean

isDefaultTranslationConnection() public méthode

public isDefaultTranslationConnection ( $connection ) : boolean
$connection
Résultat boolean

makeDirPath() public méthode

public makeDirPath ( $path )

makeTree() protected méthode

protected makeTree ( $translations )

missingKey() public méthode

public missingKey ( $namespace, $group, $key, null $locale = null, boolean $useLottery = false, boolean $findOrNew = false ) : Translation | null
$namespace string
$group string
$key string
$locale null
$useLottery boolean
$findOrNew boolean
Résultat Vsch\TranslationManager\Models\Translation | null

offsetLine() public static méthode

public static offsetLine ( $lines, $offset )

saveCache() public méthode

public saveCache ( )

saveUsageCache() public méthode

public saveUsageCache ( )

setConnectionName() public méthode

public setConnectionName ( $connection = null )

truncateTranslations() public méthode

public truncateTranslations ( $group = null )

usageCache() public méthode

public usageCache ( )

usageCacheKey() public méthode

public usageCacheKey ( $key, $locale )

usageCachePrefix() public méthode

public usageCachePrefix ( )

usingKey() public méthode

public usingKey ( $namespace, $group, $key, null $locale = null, boolean $useLottery = false )
$namespace string
$group string
$key string
$locale null
$useLottery boolean

zipTranslations() public méthode

public zipTranslations ( $groups )

Property Details

$app protected_oe property

protected Application,Illuminate\Foundation $app
Résultat Illuminate\Foundation\Application

$augmentedGroupList protected_oe property

protected $augmentedGroupList

$cache protected_oe property

protected $cache

$cacheIsDirty protected_oe property

protected $cacheIsDirty

$cacheTransKey protected_oe property

protected $cacheTransKey

$config protected_oe property

protected $config

$default_connection protected_oe property

protected $default_connection

$default_indatabase_publish protected_oe property

protected $default_indatabase_publish

$default_translation_connection protected_oe property

protected $default_translation_connection

$errors protected_oe property

protected $errors

$events protected_oe property

protected Dispatcher,Illuminate\Events $events
Résultat Illuminate\Events\Dispatcher

$files protected_oe property

protected Filesystem,Illuminate\Filesystem $files
Résultat Illuminate\Filesystem\Filesystem

$groupList protected_oe property

protected $groupList

$imported protected_oe property

protected $imported

$indatabase_publish protected_oe property

protected $indatabase_publish

$persistentPrefix protected_oe property

protected $persistentPrefix

$preloadedGroup protected_oe property

protected $preloadedGroup

$preloadedGroupKeys protected_oe property

protected $preloadedGroupKeys

$preloadedGroupLocales protected_oe property

protected $preloadedGroupLocales

$translation protected_oe property

* @var $translation Translation
protected $translation

$usageCache protected_oe property

protected $usageCache

$usageCacheIsDirty protected_oe property

protected $usageCacheIsDirty

$usageCacheTransKey protected_oe property

protected $usageCacheTransKey

$zipExporting protected_oe property

protected ZipArchive $zipExporting
Résultat ZipArchive