build array in auto_loader constructor (#7158)

* Build an array in the auto_loader constructor

* Update auto_loader.php

* Update auto_loader.php

* minor adjustment to name and comment and remove trailing closing tag

* use best practices for the loader method
Allowing the loader method:
- Should Never Be Called Manually
- Prevents External Modification
- Hides Implementation Details

* cache array in the temp folder and load if available

* re-organize functions within the class

* add cache recreation for auto_loader in upgrade_menu

* add cache recreation for auto_loader in upgrade_menu

* Update app_languages.php
This commit is contained in:
frytimo
2025-02-13 14:48:40 -07:00
committed by GitHub
parent 9b0eead911
commit 0931197137
3 changed files with 265 additions and 69 deletions
+107 -1
View File
@@ -1701,4 +1701,110 @@ $text['button-preview']['zh-cn'] = "预览";
$text['button-preview']['ja-jp'] = "プレビュー";
$text['button-preview']['ko-kr'] = "시사";
?>
$text['label-update_auto_loader']['en-us'] = 'Update Auto Loader Cache';
$text['label-update_auto_loader']['en-gb'] = 'Update Auto Loader Cache';
$text['label-update_auto_loader']['ar-eg'] = 'تحديث ذاكرة التخزين المؤقتة للتحميل التلقائي';
$text['label-update_auto_loader']['de-at'] = 'AutoLoader-Cache aktualisieren';
$text['label-update_auto_loader']['de-ch'] = 'AutoLoader-Cache aktualisieren';
$text['label-update_auto_loader']['de-de'] = 'AutoLoader-Cache aktualisieren';
$text['label-update_auto_loader']['el-gr'] = 'Ενημερώστε την προσωρινή μνήμη Auto Loader';
$text['label-update_auto_loader']['es-cl'] = 'Actualizar la caché del cargador automático';
$text['label-update_auto_loader']['es-mx'] = 'Actualizar la caché del cargador automático';
$text['label-update_auto_loader']['fr-ca'] = 'Mettre à jour le cache du chargeur automatique';
$text['label-update_auto_loader']['fr-fr'] = 'Mettre à jour le cache du chargeur automatique';
$text['label-update_auto_loader']['he-il'] = 'עדכן את מטמון הטעינה האוטומטית';
$text['label-update_auto_loader']['it-it'] = 'Aggiorna la cache del caricatore automatico';
$text['label-update_auto_loader']['ka-ge'] = 'Auto Loader Cache-ის განახლება';
$text['label-update_auto_loader']['nl-nl'] = 'Auto Loader-cache bijwerken';
$text['label-update_auto_loader']['pl-pl'] = 'Aktualizuj pamięć podręczną Auto Loader';
$text['label-update_auto_loader']['pt-br'] = 'Atualizar cache do carregador automático';
$text['label-update_auto_loader']['pt-pt'] = 'Atualizar cache do carregador automático';
$text['label-update_auto_loader']['ro-ro'] = 'Actualizați memoria cache a încărcării automate';
$text['label-update_auto_loader']['ru-ru'] = 'Обновить кэш автозагрузчика';
$text['label-update_auto_loader']['sv-se'] = 'Uppdatera Auto Loader Cache';
$text['label-update_auto_loader']['uk-ua'] = 'Оновити кеш автозавантажувача';
$text['label-update_auto_loader']['tr-tr'] = 'Otomatik Yükleyici Önbelleğini Güncelle';
$text['label-update_auto_loader']['zh-cn'] = '更新自动加载器缓存';
$text['label-update_auto_loader']['ja-jp'] = 'オートローダーキャッシュの更新';
$text['label-update_auto_loader']['ko-kr'] = '자동 로더 캐시 업데이트';
$text['description-update_auto_loader']['en-us'] = 'Updates the auto_loader cache file to include any new classes added to the project';
$text['description-update_auto_loader']['en-gb'] = 'Updates the auto_loader cache file to include any new classes added to the project';
$text['description-update_auto_loader']['ar-eg'] = 'يقوم بتحديث ملف ذاكرة التخزين المؤقت لـ auto_loader ليشمل أي فئات جديدة تمت إضافتها إلى المشروع';
$text['description-update_auto_loader']['de-at'] = 'Aktualisiert die Auto_Loader-Cachedatei, um alle neuen Klassen einzuschließen, die dem Projekt hinzugefügt werden';
$text['description-update_auto_loader']['de-ch'] = 'Aktualisiert die Auto_Loader-Cachedatei, um alle neuen Klassen einzuschließen, die dem Projekt hinzugefügt werden';
$text['description-update_auto_loader']['de-de'] = 'Aktualisiert die Auto_Loader-Cachedatei, um alle neuen Klassen einzuschließen, die dem Projekt hinzugefügt werden';
$text['description-update_auto_loader']['el-gr'] = 'Ενημερώνει το αρχείο προσωρινής μνήμης auto_loader για να συμπεριλάβει τυχόν νέες κλάσεις που προστέθηκαν στο έργο';
$text['description-update_auto_loader']['es-cl'] = 'Actualiza el archivo de caché auto_loader para incluir cualquier clase nueva agregada al proyecto';
$text['description-update_auto_loader']['es-mx'] = 'Actualiza el archivo de caché auto_loader para incluir cualquier clase nueva agregada al proyecto';
$text['description-update_auto_loader']['fr-ca'] = 'Met à jour le fichier cache du chargeur automatique pour inclure toutes les nouvelles classes ajoutées au projet';
$text['description-update_auto_loader']['fr-fr'] = 'Met à jour le fichier cache du chargeur automatique pour inclure toutes les nouvelles classes ajoutées au projet';
$text['description-update_auto_loader']['he-il'] = 'מעדכן את קובץ המטמון auto_loader כך שיכלול כל מחלקות חדשות שנוספו לפרויקט';
$text['description-update_auto_loader']['it-it'] = 'Aggiorna il file di cache auto_loader per includere tutte le nuove classi aggiunte al progetto';
$text['description-update_auto_loader']['ka-ge'] = 'აახლებს auto_loader ქეში ფაილს, რათა შეიცავდეს პროექტში დამატებულ ნებისმიერ ახალ კლასს';
$text['description-update_auto_loader']['nl-nl'] = 'Werkt het auto_loader-cachebestand bij om alle nieuwe klassen op te nemen die aan het project zijn toegevoegd';
$text['description-update_auto_loader']['pl-pl'] = 'Aktualizuje plik pamięci podręcznej auto_loader, aby uwzględnić wszystkie nowe klasy dodane do projektu';
$text['description-update_auto_loader']['pt-br'] = 'Atualiza o arquivo de cache do auto_loader para incluir quaisquer novas classes adicionadas ao projeto';
$text['description-update_auto_loader']['pt-pt'] = 'Atualiza o arquivo de cache do auto_loader para incluir quaisquer novas classes adicionadas ao projeto';
$text['description-update_auto_loader']['ro-ro'] = 'Actualizează fișierul cache auto_loader pentru a include orice clase noi adăugate la proiect';
$text['description-update_auto_loader']['ru-ru'] = 'Обновляет файл кэша auto_loader, включая в него все новые классы, добавленные в проект.';
$text['description-update_auto_loader']['sv-se'] = 'Uppdaterar cachefilen för auto_loader för att inkludera alla nya klasser som lagts till i projektet';
$text['description-update_auto_loader']['uk-ua'] = 'Оновлює файл кешу auto_loader, щоб включити всі нові класи, додані до проекту';
$text['description-update_auto_loader']['tr-tr'] = 'Projeye eklenen tüm yeni sınıfları içerecek şekilde auto_loader önbellek dosyasını günceller';
$text['description-update_auto_loader']['zh-cn'] = '更新 auto_loader 缓存文件以包含添加到项目中的任何新类';
$text['description-update_auto_loader']['ja-jp'] = 'プロジェクトに追加された新しいクラスを含めるために auto_loader キャッシュ ファイルを更新します。';
$text['description-update_auto_loader']['ko-kr'] = '프로젝트에 추가된 모든 새 클래스를 포함하도록 auto_loader 캐시 파일을 업데이트합니다.';
$text['label-reloaded_classes']['en-us'] = 'Reloaded classes';
$text['label-reloaded_classes']['en-gb'] = 'Reloaded classes';
$text['label-reloaded_classes']['ar-eg'] = 'الفصول المعاد تحميلها';
$text['label-reloaded_classes']['de-at'] = 'Neu geladene Klassen';
$text['label-reloaded_classes']['de-ch'] = 'Neu geladene Klassen';
$text['label-reloaded_classes']['de-de'] = 'Neu geladene Klassen';
$text['label-reloaded_classes']['el-gr'] = 'Επαναφόρτωση τάξεων';
$text['label-reloaded_classes']['es-cl'] = 'Clases recargadas';
$text['label-reloaded_classes']['es-mx'] = 'Clases recargadas';
$text['label-reloaded_classes']['fr-ca'] = 'Classes rechargées';
$text['label-reloaded_classes']['fr-fr'] = 'Classes rechargées';
$text['label-reloaded_classes']['he-il'] = 'שיעורים שנטענו מחדש';
$text['label-reloaded_classes']['it-it'] = 'Classi ricaricate';
$text['label-reloaded_classes']['ka-ge'] = 'გადატვირთული კლასები';
$text['label-reloaded_classes']['nl-nl'] = 'Herladen klassen';
$text['label-reloaded_classes']['pl-pl'] = 'Klasy przeładowane';
$text['label-reloaded_classes']['pt-br'] = 'Classes recarregadas';
$text['label-reloaded_classes']['pt-pt'] = 'Classes recarregadas';
$text['label-reloaded_classes']['ro-ro'] = 'Cursuri reîncărcate';
$text['label-reloaded_classes']['ru-ru'] = 'Перезагруженные классы';
$text['label-reloaded_classes']['sv-se'] = 'Omladdade klasser';
$text['label-reloaded_classes']['uk-ua'] = 'Перезавантажені класи';
$text['label-reloaded_classes']['tr-tr'] = 'Yeniden yüklenen sınıflar';
$text['label-reloaded_classes']['zh-cn'] = '重新加载的类';
$text['label-reloaded_classes']['ja-jp'] = 'リロードされたクラス';
$text['label-reloaded_classes']['ko-kr'] = '다시 로드된 클래스';
$text['label-updated_cache']['en-us'] = 'Updated cache';
$text['label-updated_cache']['en-gb'] = 'Updated cache';
$text['label-updated_cache']['ar-eg'] = 'تم تحديث ذاكرة التخزين المؤقت';
$text['label-updated_cache']['de-at'] = 'Cache aktualisiert';
$text['label-updated_cache']['de-ch'] = 'Cache aktualisiert';
$text['label-updated_cache']['de-de'] = 'Cache aktualisiert';
$text['label-updated_cache']['el-gr'] = 'Ενημερώθηκε η προσωρινή μνήμη';
$text['label-updated_cache']['es-cl'] = 'Caché actualizado';
$text['label-updated_cache']['es-mx'] = 'Caché actualizado';
$text['label-updated_cache']['fr-ca'] = 'Cache mis à jour';
$text['label-updated_cache']['fr-fr'] = 'Cache mis à jour';
$text['label-updated_cache']['he-il'] = 'מטמון מעודכן';
$text['label-updated_cache']['it-it'] = 'Cache aggiornata';
$text['label-updated_cache']['ka-ge'] = 'განახლებულია ქეში';
$text['label-updated_cache']['nl-nl'] = 'Bijgewerkte cache';
$text['label-updated_cache']['pl-pl'] = 'Zaktualizowano pamięć podręczną';
$text['label-updated_cache']['pt-br'] = 'Cache atualizado';
$text['label-updated_cache']['pt-pt'] = 'Cache atualizado';
$text['label-updated_cache']['ro-ro'] = 'Cache actualizat';
$text['label-updated_cache']['ru-ru'] = 'Обновлен кэш';
$text['label-updated_cache']['sv-se'] = 'Uppdaterad cache';
$text['label-updated_cache']['uk-ua'] = 'Оновлений кеш';
$text['label-updated_cache']['tr-tr'] = 'Güncellenen önbellek';
$text['label-updated_cache']['zh-cn'] = '更新缓存';
$text['label-updated_cache']['ja-jp'] = 'キャッシュを更新しました';
$text['label-updated_cache']['ko-kr'] = '캐시 업데이트됨';