Input
Table of Contents
- clean() : mixed
- Clean input.
- decodeHtmlEntity() : mixed
- Decode HTML entity.
- input() : mixed
- Accpet input Support get.post,put,patch,delete,others.
- inputAll() : mixed
- Accpet input Support get.post,put,patch,delete,others.
- isFromSubmit() : bool
- Check form sbumit or not.
- restoreLineBreaks() : mixed
- Restore new lines.
- wordWrapEnable() : mixed
- Wordwrap.
Methods
clean()
Clean input.
public
static clean((string) $input, (string) $type) : mixed
Parameters
- $input : (string)
-
string
- $type : (string)
-
secured,root
Tags
Return values
mixed —decodeHtmlEntity()
Decode HTML entity.
public
decodeHtmlEntity((string) $input) : mixed
Parameters
- $input : (string)
-
string.
Tags
Return values
mixed —input()
Accpet input Support get.post,put,patch,delete,others.
public
static input((string) $key) : mixed
Parameters
- $key : (string)
-
name of filed (required in get,post request)
Tags
Return values
mixed —inputAll()
Accpet input Support get.post,put,patch,delete,others.
public
static inputAll() : mixed
Tags
Return values
mixed —isFromSubmit()
Check form sbumit or not.
public
static isFromSubmit((string) $name) : bool
Parameters
- $name : (string)
-
name of submit button/ field
Tags
Return values
bool —restoreLineBreaks()
Restore new lines.
public
static restoreLineBreaks((string) $str) : mixed
Parameters
- $str : (string)
-
string that tobe restored new lines
Tags
Return values
mixed —wordWrapEnable()
Wordwrap.
public
static wordWrapEnable((string) $str, mixed $width) : mixed
Parameters
- $str : (string)
-
Str to be wordwraped
- $width : mixed