Commit 2ddf90afef427580318fb32b52a835d38dafe847

Authored by David RENÉ
1 parent b429f3b3

add load_web_controller for L3 (Locale, Language, Library)

Showing 1 changed file with 39 additions and 0 deletions   Show diff stats
web_controllers/language/load_web_controller.anubis 0 → 100644
  1 +/*
  2 + * Created by PyramIDE.
  3 + * User: フランスのトトロ aka (David RENÉ)
  4 + * Date: 19/04/2020
  5 + * Time: 00:17
  6 + * © David RENÉ
  7 + */
  8 +
  9 +read xlib/web/types/controllers_web_site.anubis
  10 +read xlib/web/plugin/plugin.anubis
  11 +read tools/basis.anubis
  12 +read system/string.anubis
  13 +read system/logger.anubis
  14 +
  15 +read hayamiki_lib/model/types/hk_database.anubis
  16 +read hayamiki_lib/view/view_table_manager_types.anubis
  17 +
  18 +define String modules_directory = find_and_replace(my_anubis_directory, "\\", "/") + "/modules/".
  19 +
  20 +
  21 +public define List(WEB_Controller)
  22 + load_L3_web_controller
  23 + (
  24 + String version,
  25 + SQLite3DataBase db,
  26 + HK_Database hk_db,
  27 + VTM _vtm,
  28 + (LogLevel, String) -> One logger
  29 + )=
  30 + if load_plugin(modules_directory+"lib_"+version+"/L3.lib") is
  31 + {
  32 + failure then
  33 + logger(logError, "Can't load '"+modules_directory+"lib_"+version+"/L3.lib'");
  34 + [],
  35 + success(l3_plugin) then
  36 + logger(logInfo, "lib_"+version+"/L3.lib' loaded");
  37 + l3_plugin.get_controller(db, hk_db, _vtm, logger)
  38 + }
  39 +.