Galette API documentation
Gestionnaire d’Adhérents en Ligne Extrêmement Tarabiscoté mais Tellement Efficace
1.0.0
Galette\Core\Galette Class Reference

Static Public Member Functions

static gitVersion (bool $time=false)
 
static getNewRelease ()
 
static getAllMenus ()
 
static isDemo ()
 
static isDebugEnabled ()
 
static isSqlDebugEnabled ()
 
static isNightly ()
 
static isSerialized (string $string)
 
static jsonDecode (string $string)
 
static jsonEncode (array|object $data)
 

Public Attributes

const MODE_PROD = 'PROD'
 
const MODE_DEV = 'DEV'
 
const MODE_MAINT = 'MAINT'
 
const MODE_DEMO = 'DEMO'
 

Detailed Description

Galette application instance

Author
Johan Cwiklinski johan.nosp@m.@x-t.nosp@m.nd.be

Member Function Documentation

◆ 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$timeInclude 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$stringString 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$stringJSON encoded string to decode
Returns
array<string|int, mixed>
Exceptions
RuntimeException

◆ 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
RuntimeException

The documentation for this class was generated from the following file: