CommunityStoreTranslationProvider
class CommunityStoreTranslationProvider implements ProviderInterface (View source)
Constants
| CORE_PACKAGE_HANDLE | 
                     
  | 
            
Properties
| protected Repository | $config | The configuration repository containind the default values.  | 
                |
| protected Cache | $cache | The cache to be used (won't be used if the cache lifetime is 0).  | 
                |
| protected Factory | $httpClientFactory | ||
| protected string|null | $entryPoint | The API entry point.  | 
                |
| protected string|null | $apiToken | The API token.  | 
                |
| protected int|null | $progressLimit | The default progress limit.  | 
                |
| protected int|null | $cacheLifetime | The cache life time (in seconds).  | 
                
Methods
Set the API entry point.
Get the API entry point.
Set the API token.
Get the API token.
Set the default progress limit.
Get the default progress limit.
Set the cache life time (in seconds).
Get the cache life time (in seconds).
List the available translations for a specific core version.
Get core translations stats for a specific locale ID.
List the available translations for a specific package version.
Get package translations stats for a specific locale ID.
Fetch the translations for the concrete5 core.
Fetch the translations for a package.
Fill-in already known translations.
No description
No description
Details
        
                            
    __construct(Repository $config, Cache $cache, Factory $httpClientFactory)
        
    
    No description
        
                            $this
    setEntryPoint(string $entryPoint)
        
    
    Set the API entry point.
        
                            string
    getEntryPoint()
        
    
    Get the API entry point.
        
                            $this
    setApiToken(string $value)
        
    
    Set the API token.
        
                            string
    getApiToken()
        
    
    Get the API token.
        
                            $this
    setProgressLimit($value)
        
    
    Set the default progress limit.
        
                            int
    getProgressLimit()
        
    
    Get the default progress limit.
        
                            $this
    setCacheLifetime($value)
        
    
    Set the cache life time (in seconds).
        
                            int
    getCacheLifetime()
        
    
    Get the cache life time (in seconds).
        
                            Stats[]
    getAvailableCoreStats(string $coreVersion, int|null $progressLimit = null)
        
    
    List the available translations for a specific core version.
        
                            Stats
    getCoreStats(string $coreVersion, string $localeID, int|null $progressLimit = null)
        
    
    Get core translations stats for a specific locale ID.
        
                            Stats[]
    getAvailablePackageStats(string $packageHandle, string $packageVersion, int|null $progressLimit = null)
        
    
    List the available translations for a specific package version.
        
                            Stats
    getPackageStats(string $packageHandle, string $packageVersion, $localeID, $progressLimit = null)
        
    
    Get package translations stats for a specific locale ID.
        
                            string
    fetchCoreTranslations(string $coreVersion, string $localeID, string $formatHandle = 'mo')
        
    
    Fetch the translations for the concrete5 core.
        
                            string
    fetchPackageTranslations(string $packageHandle, string $packageVersion, string $localeID, string $formatHandle = 'mo')
        
    
    Fetch the translations for a package.
        
                            Translations
    fillTranslations(Translations $translations)
        
    
    Fill-in already known translations.
        
                    protected        
    buildRequest(string $path)
        
    
    No description
        
                    protected        array
    getJsonFromResponse(Response $response)
        
    
    No description