CoreLogic2020
in package
Class to be extended for the creation of a logic application.
Normally your file has to be stored in the logic/
directory and extend this class.
Table of Contents
Properties
- $error : bool
- $errorMsg : array<string|int, mixed>
- $formParams : array<string|int, mixed>
- $method : string
- $params : array<string|int, mixed>
- $core : Core7
Methods
- __construct() : mixed
- CoreLogic constructor.
- addError() : mixed
- Add an error in the class
- getFormParams() : mixed
- getParams() : mixed
- render() : mixed
- Try to render a template
Properties
$error
public
bool
$error
= \false
Indicates if an error has been produced
$errorMsg
public
array<string|int, mixed>
$errorMsg
= []
Keep the error messages
$formParams
public
array<string|int, mixed>
$formParams
= array()
Contains the variables passed in a GET,POST,PUT call intro an URL
$method
public
string
$method
= 'GET'
indicates the HTTP method used to access the script: GET, POST etc.. Default value is GET
$params
public
array<string|int, mixed>
$params
= array()
contains the substrings paths of an URL script/param0/param1/..
$core
protected
Core7
$core
pointer to the Core class. $this->core->...
Methods
__construct()
CoreLogic constructor.
public
__construct(Core7 &$core) : mixed
Parameters
- $core : Core7
addError()
Add an error in the class
public
addError( $value) : mixed
Parameters
getFormParams()
public
getFormParams(mixed $var) : mixed
Parameters
- $var : mixed
getParams()
public
getParams(mixed $index) : mixed
Parameters
- $index : mixed
render()
Try to render a template
public
render(string $template) : mixed
Parameters
- $template : string
-
Path to the template