Arikaim CMS

TaskErrors

Task Errors trait

Table of Contents

Properties

$taskErrors  : array<string|int, mixed>
Task errors

Methods

addError()  : void
Add error
clearErrors()  : void
Clear Error
getError()  : mixed
Get error
getErrors()  : array<string|int, mixed>
Get errors
hasError()  : bool
Return true if have error

Properties

$taskErrors

Task errors

protected array<string|int, mixed> $taskErrors = []

Methods

addError()

Add error

public addError(string $errorMessage) : void
Parameters
$errorMessage : string

clearErrors()

Clear Error

public clearErrors() : void

getError()

Get error

public getError([int $index = 0 ]) : mixed
Parameters
$index : int = 0

getErrors()

Get errors

public getErrors() : array<string|int, mixed>
Return values
array<string|int, mixed>

hasError()

Return true if have error

public hasError() : bool
Return values
bool

        
On this page

Search results