API Documentation
Table of Contents
Namespaces
Constants
- CONFIG_FILE = $_SERVER["DOCUMENT_ROOT"] . "/../config/config.php"
- DO_NOT_MINIFY = \FALSE
- GLOBAL_METHODS = $_SERVER["DOCUMENT_ROOT"] . "/../Core/globalMethods.php"
- MAIN = "main_container"
- START_TEMPLATE = \VISTAS . "/main/main.php"
- TODAY = \date("Y-m-d")
- Definicion de constantes globales.
- VISTAS = $_SERVER["DOCUMENT_ROOT"] . "/../app/views"
Functions
- app() : App
- Global funtion to access the singleton app instance
- globalThrowableHandler() : void
- This is the global scoped function that handles all throwable (Exception + Error)
- clp() : string
- Da formato de dinero con separador de miles en formato de peso chileno a un numero.
- clog() : void
- Global function to access arror_log for convenience.
- dd() : never
- Dump & die.
Constants
CONFIG_FILE
public
mixed
CONFIG_FILE
= $_SERVER["DOCUMENT_ROOT"] . "/../config/config.php"
DO_NOT_MINIFY
public
mixed
DO_NOT_MINIFY
= \FALSE
GLOBAL_METHODS
public
mixed
GLOBAL_METHODS
= $_SERVER["DOCUMENT_ROOT"] . "/../Core/globalMethods.php"
MAIN
public
mixed
MAIN
= "main_container"
START_TEMPLATE
public
mixed
START_TEMPLATE
= \VISTAS . "/main/main.php"
TODAY
Definicion de constantes globales.
public
mixed
TODAY
= \date("Y-m-d")
Agregar las constantes que sea conveniente usar.
Ejemplo:
- una ruta directa a un directorio de template, ver siguiente ejemplo:
- define("VISTAS_EMPRESA", $_SERVER["DOCUMENT_ROOT"] . "/../app/views/contabilidad/empresa");
VISTAS
public
mixed
VISTAS
= $_SERVER["DOCUMENT_ROOT"] . "/../app/views"
Functions
app()
Global funtion to access the singleton app instance
app() : App
Return values
AppglobalThrowableHandler()
This is the global scoped function that handles all throwable (Exception + Error)
globalThrowableHandler(Throwable $e) : void
Parameters
- $e : Throwable
clp()
Da formato de dinero con separador de miles en formato de peso chileno a un numero.
clp(float|string $number) : string
- Ejemplo: 1234567.89 -> 1.234.568
- Notar la aproximación automática
Parameters
- $number : float|string
Return values
stringclog()
Global function to access arror_log for convenience.
clog(mixed $args) : void
Parameters
- $args : mixed
dd()
Dump & die.
dd(mixed $arg) : never
Will echo a var_dump of the arg parameter and then stop execution.
Parameters
- $arg : mixed