Frontend\Core\Language\Language::buildCache PHP Méthode

buildCache() public static méthode

Build the language files
public static buildCache ( string $language, string $application )
$language string The language to build the locale-file for.
$application string The application to build the locale-file for.
    public static function buildCache($language, $application)
    {
        $cacheBuilder = new CacheBuilder(Model::get('database'));
        $cacheBuilder->buildCache($language, $application);
    }

Usage Example

Exemple #1
0
 /**
  * Build the language files
  *
  * @param string $language    The language to build the locale-file for.
  * @param string $application The application to build the locale-file for.
  *
  * @deprecated
  */
 public static function buildCache($language, $application)
 {
     trigger_error('Frontend\\Core\\Engine\\Language is deprecated.
          It has been moved to Frontend\\Core\\Language\\Language', E_USER_DEPRECATED);
     return parent::buildCache($language, $application);
 }