core\util\class-init-util.php
- Author
- Eoxia
- Copyright
- 2015-2018 Eoxia
- Package
- EO_Framework\Core\Util
- Since
- 0.1.0
- Version
- 1.0.0
\eoxia\Init_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) : voidAppelles les méthodes read_core_util_file_and_include et init_main_config ainsi que init_module
| Name | Type | Description |
|---|---|---|
| $path | string | Le chemin absolue vers le plugin. |
| $plugin_slug | string | Le slug du plugin (Défini dans votre config.json principale). |

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

init_external(string $path, string $plugin_slug) : voidAppel la méthode 'exec' de l'objet 'External_Util' afin d'initialiser les externals.
| Name | Type | Description |
|---|---|---|
| $path | string | Le chemin du plugin. |
| $plugin_slug | string | Le slug principale du plugin défini dans le fichier config.json principale. |
- Since
- 0.1.0
- Version
- 1.0.0

init_main_config(string $path, string $plugin_slug) : voidAppelle la méthode init_config avec le fichier digirisk.config.json
| Name | Type | Description |
|---|---|---|
| $path | string | Le chemin du plugin. |
| $plugin_slug | string | Le slug principale du plugin défini dans le fichier config.json principale. |
- Since
- 0.1.0
- Version
- 1.0.0

init_module(string $path, string $plugin_slug) : voidAppelle la méthode exec_module de \eoxia\Module_Util pour initialiser tous les modules
| Name | Type | Description |
|---|---|---|
| $path | string | Le chemin du plugin. |
| $plugin_slug | string | Le slug principale du plugin défini dans le fichier config.json principale. |
- Since
- 0.1.0
- Version
- 1.0.0

read_core_util_file_and_include(string $path, string $plugin_slug) : \eoxia\WP_Error | booleanListes la liste des fichiers ".utils" dans le dossier ./core/external/wpeo_util/
| Name | Type | Description |
|---|---|---|
| $path | string | Le chemin du plugin. |
| $plugin_slug | string | Le slug principale du plugin défini dans le fichier config.json principale. |
| Type | Description |
|---|---|
| \eoxia\WP_Error | boolean | { WP_Error Si le module n'existe pas dans le tableau externals du fichier principale de config.json. WP_Error Si le fichier n'existe pas bool Si aucune erreur s'est produite. } |
- Since
- 0.1.0
- Version
- 1.0.0