class Helper

This is the global app Helper

Methods

static  array
getDefaultEnvParameters()

Get the default environment vars to load in views and calling controller's actions

static  bool
classImplements($class_name, $interface_name)

Test if a class implements an interface

static  string
getPropertyName( string $name = '', string $replace = '_', bool $capitalize_first_char = true)

Get a safe class property name in camel case

static  string
getMethodName($property_name)

Get a safe class method name in camel case

static  mixed
fetchArguments( null $method_name = null, null $arguments = null, null $class_name = null)

Call a callback fetching organized arguments depending on its declaration

static 
debug()

Hard debug anything

static 
exceptionHandler( Exception $e, bool $plain_text = false)

Get a safe exception info

Details

at line 39
static array getDefaultEnvParameters()

Get the default environment vars to load in views and calling controller's actions

Return Value

array

at line 56
static bool classImplements($class_name, $interface_name)

Test if a class implements an interface

Parameters

$class_name
$interface_name

Return Value

bool

at line 71
static string getPropertyName( string $name = '', string $replace = '_', bool $capitalize_first_char = true)

Get a safe class property name in camel case

Parameters

string $name
string $replace
bool $capitalize_first_char

Return Value

string

at line 81
static string getMethodName($property_name)

Get a safe class method name in camel case

Parameters

$property_name

Return Value

string

at line 93
static mixed fetchArguments( null $method_name = null, null $arguments = null, null $class_name = null)

Call a callback fetching organized arguments depending on its declaration

Parameters

null $method_name
null $arguments
null $class_name

Return Value

mixed

at line 105
static debug()

Hard debug anything

at line 120
static exceptionHandler( Exception $e, bool $plain_text = false)

Get a safe exception info

Parameters

Exception $e
bool $plain_text