|
const | MODE_PROD = 'PROD' |
|
const | MODE_DEV = 'DEV' |
|
const | MODE_MAINT = 'MAINT' |
|
const | MODE_DEMO = 'DEMO' |
|
Galette application instance
- Author
- Johan Cwiklinski johan.nosp@m.@x-t.nosp@m.nd.be
◆ getAllMenus()
static Galette\Core\Galette::getAllMenus |
( |
| ) |
|
|
static |
Get all menus
- Returns
- array<string, string|array<string,mixed>>
◆ getNewRelease()
static Galette\Core\Galette::getNewRelease |
( |
| ) |
|
|
static |
Get Galette new release
- Returns
- array<string, string|array<string,mixed>>
◆ gitVersion()
static Galette\Core\Galette::gitVersion |
( |
bool |
$time = false | ) |
|
|
static |
Retrieve Galette version from git, if present.
- Parameters
-
boolean | $time | Include time and timezone. Defaults to false. |
- Returns
- string
◆ isDebugEnabled()
static Galette\Core\Galette::isDebugEnabled |
( |
| ) |
|
|
static |
Is debug mode enabled
- Returns
- bool
◆ isDemo()
static Galette\Core\Galette::isDemo |
( |
| ) |
|
|
static |
Is demonstration mode enabled
- Returns
- bool
◆ isNightly()
static Galette\Core\Galette::isNightly |
( |
| ) |
|
|
static |
Is a nightly build
- Returns
- bool
◆ isSerialized()
static Galette\Core\Galette::isSerialized |
( |
string |
$string | ) |
|
|
static |
Check if a string is serialized
- Parameters
-
string | $string | String to check |
- Returns
- bool
◆ isSqlDebugEnabled()
static Galette\Core\Galette::isSqlDebugEnabled |
( |
| ) |
|
|
static |
Is SQL debug mode enabled
- Returns
- bool
◆ jsonDecode()
static Galette\Core\Galette::jsonDecode |
( |
string |
$string | ) |
|
|
static |
JSON decode with exception
- Parameters
-
string | $string | JSON encoded string to decode |
- Returns
- array<string|int, mixed>
- Exceptions
-
◆ jsonEncode()
static Galette\Core\Galette::jsonEncode |
( |
array|object |
$data | ) |
|
|
static |
JSON encode with exception
- Parameters
-
array<string|int,mixed>|object | $data Data to encode |
- Returns
- string
- Exceptions
-
The documentation for this class was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/galette-apidoc/checkouts/develop/galette/lib/Galette/Core/Galette.php