core\util\class-external-util.php
Les externals doivent être placés dans core/externals/
- Author
- Eoxia
- Copyright
- 2015-2018 Eoxia
- Package
- EO_Framework\Core\Util
- Since
- 0.1.0
- Version
- 1.0.0
\eoxia\External_Util
- Parent(s)
- \eoxia\Singleton_Util
- Inherited_from
- \eoxia\Singleton_Util
Properties
Methods

__construct() : voidAppelle le constructeur parent
Inherited from:- Since
- 0.1.0
- Version
- 1.0.0

construct() : voidLe constructeur obligatoirement pour utiliser la classe \eoxia\Singleton_Util
- Since
- 0.1.0
- Version
- 1.0.0

construct() : voidLe constructeur pour les enfants
Inherited from:- Since
- 0.1.0
- Version
- 1.0.0

exec(string $path, string $plugin_slug) : \eoxia\WP_Error | booleanParcours le fichier digirisk.config.json pour récupérer les chemins vers tous les modules.
Initialise ensuite un par un, tous ses modules.
| Name | Type | Description |
|---|---|---|
| $path | string | Le chemin vers le module externe. |
| $plugin_slug | string | Le slug principale du plugin dans le fichier principale config.json. |
| Type | Description |
|---|---|
| \eoxia\WP_Error | boolean | { WP_Error Si le module n'existe pas dans le tableau externals du fichier principale de config.json. bool Si aucune erreur s'est produite. } |
- Since
- 0.1.0
- Version
- 1.0.0

g() : \eoxia\Singleton_UtilRécupères l'instance courante
Inherited from:| Type | Description |
|---|---|
| \eoxia\Singleton_Util | L'instance courante |
- Since
- 0.1.0
- Version
- 1.0.0

inc(string $plugin_slug, string $module_json_path) : voidInclus les dépendences du module (qui sont défini dans le config.json du module en question)
| Name | Type | Description |
|---|---|---|
| $plugin_slug | string | Le slug du module externe à initialiser. |
| $module_json_path | string | Le chemin vers le dossier du module externe. |
- Since
- 0.1.0
- Version
- 1.0.0

inc_config(string $plugin_slug, string $module_json_path) : voidAppelle la méthode init_config de \eoxia\Config_Util pour initialiser les configs du module
| Name | Type | Description |
|---|---|---|
| $plugin_slug | string | Le slug du module externe à initialiser. |
| $module_json_path | string | Le chemin vers le dossier du module externe. |
- Since
- 0.1.0
- Version
- 1.0.0

inc_priority_file(string $path_to_module_and_dependence_folder, string $dependence_folder, array $list_priority_file) : voidInclus les fichiers prioritaires qui se trouvent dans la clé "priority" dans le .config.json du module
| Name | Type | Description |
|---|---|---|
| $path_to_module_and_dependence_folder | string | Le chemin vers le module. |
| $dependence_folder | string | le chemin vers le dossier à inclure. |
| $list_priority_file | array | La liste des chemins des fichiers à inclure en priorité. |
- Since
- 0.1.0
- Version
- 1.0.0