core\util\class-json-util.php
Méthodes utiles pour les fichiers JSON.
- Author
- Eoxia
- Copyright
- 2015-2018 Eoxia
- Package
- EO_Framework\Core\Util
- Since
- 0.1.0
- Version
- 1.0.0
\eoxia\JSON_Util
Package: EO_Framework\Core\Util




Méthodes utiles pour les fichiers JSON.
- Parent(s)
- \eoxia\Singleton_Util
- Inherited_from
- \eoxia\Singleton_Util
Properties
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

decode(string $json_to_decode) : arrayDécodes la chaine de caractère $json_to_decode
Parameters
Returns
Details
| Name | Type | Description |
|---|---|---|
| $json_to_decode | string | La chaine de caractère JSON. |
| Type | Description |
|---|---|
| array | Les données décodées |
- 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

open_and_decode(string $path_to_json, string $output = 'STDCLASS') : arrayOuvres et décode le fichier JSON $path_to_json
Parameters
Returns
Details
| Name | Type | Description |
|---|---|---|
| $path_to_json | string | Le chemin vers le fichier JSON. |
| $output | string | Peut être STDCLASS ou ARRAY_A ou ARRAY_N. Défault STDCLASS. |
| Type | Description |
|---|---|
| array | Les données du fichier JSON |
- Since
- 0.1.0
- Version
- 1.0.0