Dotclear 2.24
Loading...
Searching...
No Matches
dcError Class Reference

Public Member Functions

 add (string $msg)
 
 flag ()
 
 count ()
 
 toHTML ()
 

Protected Attributes

 $errors = []
 
 $flag = false
 

Member Function Documentation

◆ add()

add ( string  $msg)

Adds an error to stack.

Parameters
string$msgError message

References flag().

◆ flag()

flag ( )

Returns the value of flag property. True if errors stack is not empty

Returns
bool

References $flag.

Referenced by add(), and toHTML().

◆ count()

count ( )

Return number of stacked errors

Returns
int

References count().

Referenced by count().

◆ toHTML()

toHTML ( )

Returns errors stack as HTML and reset it.

Returns
string

References dcAdminNotices\error(), and flag().

Field Documentation

◆ $errors

$errors = []
protected

◆ $flag

$flag = false
protected

Referenced by flag().


The documentation for this class was generated from the following file: