PHP Class Vsch\TranslationManager\Manager

Datei anzeigen Open project: vsch/laravel-translation-manager Class Usage Examples

Protected Properties

Property 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

Public Methods

Method 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 )

Protected Methods

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

Method Details

__construct() public method

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 method

public afterRoute ( $request, $response )

areUserLocalesEnabled() public method

public areUserLocalesEnabled ( ) : boolean
return boolean

cache() public method

public cache ( )

cacheEnabled() public method

public cacheEnabled ( )

cacheGroupTranslations() public method

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

cacheKey() public method

public cacheKey ( $key, $locale )

cachePrefix() public method

public cachePrefix ( )

cacheTranslation() public method

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

cacheUsageInfo() public method

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

cachedTranslation() public method

public cachedTranslation ( $key, $locale )

cachedUsageInfo() public method

public cachedUsageInfo ( $key, $locale )

cleanTranslations() public method

public cleanTranslations ( )

clearCache() public method

public clearCache ( $groups = null )

clearErrors() public method

public clearErrors ( )

clearUsageCache() public method

public clearUsageCache ( $clearDatabase, $groups = null )

computeFileLines() public static method

public static computeFileLines ( $fileContents )

config() public method

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

dbValue() protected static method

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

errors() public method

public errors ( )

excludedPageEditGroup() public method

public excludedPageEditGroup ( $group )

exportAllTranslations() public method

public exportAllTranslations ( $recursing )

exportTranslations() public method

public exportTranslations ( $group, $recursing )

findTranslations() public method

public findTranslations ( $path = null )

firstOrCreateTranslation() public method

public firstOrCreateTranslation ( $attributes = null )

firstOrNewTranslation() public method

public firstOrNewTranslation ( $attributes = null )

fixGroup() public static method

public static fixGroup ( $group )

getConnection() public method

public getConnection ( )

getConnectionInDatabasePublish() public method

public getConnectionInDatabasePublish ( $connection )

getConnectionInfo() public method

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

getConnectionName() public method

public getConnectionName ( )

getGroupAugmentedList() public method

getGroupList() public method

public getGroupList ( )

getTranslation() public method

public getTranslation ( ) : Translation
return Vsch\TranslationManager\Models\Translation

getTranslationsTableName() public method

getUserListConnection() public method

public getUserListConnection ( $connection )

getUserListProvider() public method

public getUserListProvider ( $connection )

getUserLocalesTableName() public method

groupKeyList() protected static method

protected static groupKeyList ( $key )

importTranslationFile() protected method

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

importTranslations() public method

public importTranslations ( $replace, $groups = null )

inDatabasePublishing() public method

public inDatabasePublishing ( ) : boolean
return boolean

isDefaultTranslationConnection() public method

public isDefaultTranslationConnection ( $connection ) : boolean
$connection
return boolean

makeDirPath() public method

public makeDirPath ( $path )

makeTree() protected method

protected makeTree ( $translations )

missingKey() public method

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
return Vsch\TranslationManager\Models\Translation | null

offsetLine() public static method

public static offsetLine ( $lines, $offset )

saveCache() public method

public saveCache ( )

saveUsageCache() public method

public saveUsageCache ( )

setConnectionName() public method

public setConnectionName ( $connection = null )

truncateTranslations() public method

public truncateTranslations ( $group = null )

usageCache() public method

public usageCache ( )

usageCacheKey() public method

public usageCacheKey ( $key, $locale )

usageCachePrefix() public method

public usageCachePrefix ( )

usingKey() public method

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

zipTranslations() public method

public zipTranslations ( $groups )

Property Details

$app protected_oe property

protected Application,Illuminate\Foundation $app
return 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
return Illuminate\Events\Dispatcher

$files protected_oe property

protected Filesystem,Illuminate\Filesystem $files
return 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
return ZipArchive