public function buildCache($language, $application) { // get types $this->types = $this->database->getEnumValues('locale', 'type'); $this->locale = $this->getLocale($language, $application); $this->dumpJsonCache($language, $application); }
/** * 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. */ public static function buildCache($language, $application) { $cacheBuilder = new CacheBuilder(BackendModel::get('database')); $cacheBuilder->buildCache($language, $application); }