Documentation

JsonAjax
in package

Table of Contents

Constants

ERROR  = 0
SUCCESS  = 1
WARNING  = 2

Properties

$chart  : mixed
$content  : mixed
$data  : mixed
$errors  : mixed
$exception_mode  : mixed
$headers  : mixed
$history  : mixed
$link_redirect  : mixed
$message  : mixed
$modal  : mixed
$status  : mixed
$status_code  : mixed
$time_toast_remove  : mixed
$title  : mixed
$type_color_error  : mixed
$type_view_message  : mixed

Methods

appendChart()  : mixed
appendData()  : mixed
appendError()  : mixed
appendErrorIfDoesntExist()  : mixed
appendLinkRedirect()  : mixed
appendMessage()  : mixed
appendModal()  : mixed
createMessage()  : mixed
disableHistory()  : mixed
hasChart()  : mixed
hasError()  : mixed
hasLinkRedirect()  : mixed
hasMessage()  : mixed
hasModal()  : mixed
redirect()  : mixed
response()  : mixed
responseErrorIfExist()  : mixed
responseErrorIfExistMobile()  : mixed
responseFileHTML()  : mixed
responseFilePDF()  : mixed
responseFilePEM()  : mixed
responseFileREM()  : mixed
responseFileRET()  : mixed
responseFileS3()  : mixed
responseFileTXT()  : mixed
responseFileXLM()  : mixed
responseHTML()  : mixed
responseMobile()  : mixed
responseSimple()  : mixed
setExceptionMode()  : mixed
setStatus()  : mixed
setTimeOutToast()  : mixed
setTitle()  : mixed
setTypeViewMessage()  : mixed
addHeader()  : mixed
call_exception()  : mixed
json()  : mixed
jsonMobile()  : mixed
responseFile()  : mixed
sendHeaders()  : mixed
setContentType()  : mixed
setHeaderResponse()  : mixed

Constants

Properties

$content

private static mixed $content = []

$errors

private static mixed $errors = []

$exception_mode

private static mixed $exception_mode = false

$headers

private static mixed $headers = []

$history

private static mixed $history = 1
private static mixed $link_redirect = null

$message

private static mixed $message = []

$status

private static mixed $status = null

$status_code

private static mixed $status_code = 200

$time_toast_remove

private static mixed $time_toast_remove = 5

$type_color_error

private static mixed $type_color_error = null

$type_view_message

private static mixed $type_view_message = "toast"

Methods

appendChart()

public static appendChart([array<string|int, mixed> $dataChart = [] ]) : mixed
Parameters
$dataChart : array<string|int, mixed> = []

appendData()

public static appendData([array<string|int, mixed> $dataAppend = [] ]) : mixed
Parameters
$dataAppend : array<string|int, mixed> = []

appendError()

public static appendError(mixed $message[, mixed $nameInput = '' ]) : mixed
Parameters
$message : mixed
$nameInput : mixed = ''

appendErrorIfDoesntExist()

public static appendErrorIfDoesntExist(mixed $message[, mixed $nameInput = '' ]) : mixed
Parameters
$message : mixed
$nameInput : mixed = ''

appendLinkRedirect()

public static appendLinkRedirect(mixed $link) : mixed
Parameters
$link : mixed

appendMessage()

public static appendMessage(mixed $message[, mixed $nameInput = '' ][, mixed $status = false ]) : mixed
Parameters
$message : mixed
$nameInput : mixed = ''
$status : mixed = false

appendModal()

public static appendModal(mixed $options) : mixed
Parameters
$options : mixed

createMessage()

public static createMessage(mixed $status_cod[, mixed $message = null ][, mixed $title = '' ]) : mixed
Parameters
$status_cod : mixed
$message : mixed = null
$title : mixed = ''

disableHistory()

public static disableHistory([mixed $value = true ]) : mixed
Parameters
$value : mixed = true

hasChart()

public static hasChart() : mixed

hasError()

public static hasError() : mixed

hasLinkRedirect()

public static hasLinkRedirect() : mixed

hasMessage()

public static hasMessage() : mixed

hasModal()

public static hasModal() : mixed

redirect()

public static redirect(mixed $path) : mixed
Parameters
$path : mixed

response()

public static response(mixed $status[, mixed $message = null ][, mixed $title = '' ][, mixed $redirect = [] ][, mixed $force_modal = false ]) : mixed
Parameters
$status : mixed
$message : mixed = null
$title : mixed = ''
$redirect : mixed = []
$force_modal : mixed = false

responseErrorIfExist()

public static responseErrorIfExist(mixed $title) : mixed
Parameters
$title : mixed

responseErrorIfExistMobile()

public static responseErrorIfExistMobile(mixed $title[, mixed $status_code = 201 ]) : mixed
Parameters
$title : mixed
$status_code : mixed = 201

responseFileHTML()

public static responseFileHTML(mixed $binary_blob[, mixed $name = "arquivo" ][, mixed $attachment = 0 ]) : mixed
Parameters
$binary_blob : mixed
$name : mixed = "arquivo"
$attachment : mixed = 0

responseFilePDF()

public static responseFilePDF(mixed $binary_blob[, mixed $name = "arquivo" ][, mixed $attachment = 0 ]) : mixed
Parameters
$binary_blob : mixed
$name : mixed = "arquivo"
$attachment : mixed = 0

responseFilePEM()

public static responseFilePEM(mixed $binary_blob[, mixed $name = "arquivo" ][, mixed $attachment = 0 ]) : mixed
Parameters
$binary_blob : mixed
$name : mixed = "arquivo"
$attachment : mixed = 0

responseFileREM()

public static responseFileREM(mixed $binary_blob[, mixed $name = "arquivo" ][, mixed $attachment = 0 ]) : mixed
Parameters
$binary_blob : mixed
$name : mixed = "arquivo"
$attachment : mixed = 0

responseFileRET()

public static responseFileRET(mixed $binary_blob[, mixed $name = "arquivo" ][, mixed $attachment = 0 ]) : mixed
Parameters
$binary_blob : mixed
$name : mixed = "arquivo"
$attachment : mixed = 0

responseFileS3()

public static responseFileS3(mixed $binary_blob, mixed $content_type[, mixed $name = "arquivo" ][, mixed $attachment = 0 ]) : mixed
Parameters
$binary_blob : mixed
$content_type : mixed
$name : mixed = "arquivo"
$attachment : mixed = 0

responseFileTXT()

public static responseFileTXT(mixed $binary_blob[, mixed $name = "arquivo" ][, mixed $attachment = 0 ]) : mixed
Parameters
$binary_blob : mixed
$name : mixed = "arquivo"
$attachment : mixed = 0

responseFileXLM()

public static responseFileXLM(mixed $binary_blob[, mixed $name = "arquivo" ][, mixed $attachment = 0 ]) : mixed
Parameters
$binary_blob : mixed
$name : mixed = "arquivo"
$attachment : mixed = 0

responseHTML()

public static responseHTML(mixed $HTML) : mixed
Parameters
$HTML : mixed

responseMobile()

public static responseMobile(mixed $status_code[, mixed $content = [] ][, mixed $content_type = 'application/json' ]) : mixed
Parameters
$status_code : mixed
$content : mixed = []
$content_type : mixed = 'application/json'

responseSimple()

public static responseSimple(mixed $array) : mixed
Parameters
$array : mixed

setExceptionMode()

public static setExceptionMode([mixed $mode = true ]) : mixed
Parameters
$mode : mixed = true

setStatus()

public static setStatus(mixed $status) : mixed
Parameters
$status : mixed

setTimeOutToast()

public static setTimeOutToast(int $value) : mixed
Parameters
$value : int

setTitle()

public static setTitle(mixed $title[, mixed $status = null ]) : mixed
Parameters
$title : mixed
$status : mixed = null

setTypeViewMessage()

public static setTypeViewMessage() : mixed

addHeader()

private static addHeader(mixed $key, mixed $value) : mixed
Parameters
$key : mixed
$value : mixed

call_exception()

private static call_exception(mixed $function) : mixed
Parameters
$function : mixed

json()

private static json(mixed $array) : mixed
Parameters
$array : mixed

jsonMobile()

private static jsonMobile() : mixed

responseFile()

private static responseFile(mixed $binary_blob) : mixed
Parameters
$binary_blob : mixed

sendHeaders()

private static sendHeaders() : mixed

setContentType()

private static setContentType(mixed $content_type) : mixed
Parameters
$content_type : mixed

setHeaderResponse()

private static setHeaderResponse(mixed $status_cod) : mixed
Parameters
$status_cod : mixed

        
On this page

Search results