core\util\class-config-util.php
Gestion de l'objet Config_Util::$init.
- Author
- Eoxia
- Copyright
- 2015-2018 Eoxia
- Package
- EO_Framework\Core\Util
- Since
- 0.1.0
- Version
- 1.0.0
\eoxia\Config_Util
Package: EO_Framework\Core\Util




Gestion de l'objet Config_Util::$init.
- Parent(s)
- \eoxia\Singleton_Util
- Inherited_from
- \eoxia\Singleton_Util
Properties

array $init = array()static
Un tableau contenant toutes les configurations des fichies config.json
Default value
array()Details- Type
- array
Methods

__construct() : voidfinalinherited
Appelle le constructeur parent
Inherited from:Details
- Since
- 0.1.0
- Version
- 1.0.0

construct() : voidabstractinherited
Le constructeur pour les enfants
Inherited from:Details
- Since
- 0.1.0
- Version
- 1.0.0

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

init_config(string $path_to_config_file, string $plugin_slug = '') : \WP_Error | booleanInitialise les fichiers de configuration
Parameters
Returns
Details
| Name | Type | Description |
|---|---|---|
| $path_to_config_file | string | Le chemin vers le fichier config.json. |
| $plugin_slug | string | Le SLUG du plugin définis dans le fichier principale de config.json. |
| Type | Description |
|---|---|
| \WP_Error | boolean | { WP_Error Si le fichier est inexistant ou si le plugin ne contient pas de slug. boolean True si aucune erreur s'est produite. }. |
- Since
- 0.1.0
- Version
- 1.0.1