Dotclear 2.24
|
Static Public Member Functions | |
static | getNotices () |
static | addNotice (string $type, string $message, array $options=[]) |
static | addMessageNotice (string $message, array $options=[]) |
static | addSuccessNotice (string $message, array $options=[]) |
static | addWarningNotice (string $message, array $options=[]) |
static | addErrorNotice (string $message, array $options=[]) |
static | message (string $msg, bool $timestamp=true, bool $div=false, bool $echo=true, ?string $class=null) |
static | success (string $msg, bool $timestamp=true, bool $div=false, bool $echo=true) |
static | warning (string $msg, bool $timestamp=true, bool $div=false, bool $echo=true) |
static | error (string $msg, bool $timestamp=true, bool $div=false, bool $echo=true) |
Data Fields | |
const | NOTICE_SUCCESS = 'success' |
const | NOTICE_WARNING = 'warning' |
const | NOTICE_ERROR = 'error' |
const | NOTICE_MESSAGE = 'message' |
const | NOTICE_STATIC = 'static' |
|
static |
Gets the HTML code of notices.
References dcCore\app(), DC_VERSION, and NOTICE_STATIC.
Referenced by dcPage\notices(), dcPage\open(), and dcPage\openPopup().
|
static |
Adds a notice.
string | $type | The type |
string | $message | The message |
array | $options | The options |
References $message, dcCore\app(), and dt\setTZ().
Referenced by addErrorNotice(), dcPage\addErrorNotice(), addMessageNotice(), dcPage\addMessageNotice(), addSuccessNotice(), dcPage\addSuccessNotice(), addWarningNotice(), and dcPage\addWarningNotice().
|
static |
Adds a message (informational) notice.
string | $message | The message |
array | $options | The options |
References $message, and addNotice().
|
static |
Adds a success notice.
string | $message | The message |
array | $options | The options |
References $message, and addNotice().
|
static |
Adds a warning notice.
string | $message | The message |
array | $options | The options |
References $message, and addNotice().
|
static |
Adds an error notice.
string | $message | The message |
array | $options | The options |
References $message, and addNotice().
|
static |
Direct messages, usually immediately displayed
string | $msg | The message |
bool | $timestamp | With the timestamp |
bool | $div | Inside a div (else in a p) |
bool | $echo | Display the message? |
null | string | $class | The class of block (div/p) |
References dcCore\app(), dt\iso8601(), NOTICE_MESSAGE, and dt\str().
Referenced by error(), dcPage\message(), success(), and warning().
Display a success message
string | $msg | The message |
bool | $timestamp | With the timestamp |
bool | $div | Inside a div (else in a p) |
bool | $echo | Display the message? |
References message().
Referenced by dcPage\success().
Display a warning message
string | $msg | The message |
bool | $timestamp | With the timestamp |
bool | $div | Inside a div (else in a p) |
bool | $echo | Display the message? |
References message().
Referenced by adminBlogDel\render(), and dcPage\warning().
Display an error message
string | $msg | The message |
bool | $timestamp | With the timestamp |
bool | $div | Inside a div (else in a p) |
bool | $echo | Display the message? |
References message().
Referenced by dcPage\error(), and dcError\toHTML().
const NOTICE_SUCCESS = 'success' |
Referenced by dcPage\addSuccessNotice().
const NOTICE_WARNING = 'warning' |
Referenced by dcPage\addWarningNotice().
const NOTICE_ERROR = 'error' |
Referenced by dcPage\addErrorNotice().
const NOTICE_MESSAGE = 'message' |
Referenced by dcPage\addMessageNotice(), and message().
const NOTICE_STATIC = 'static' |
Referenced by getNotices().