|
|
|
@@ -19,7 +19,7 @@
|
|
|
|
|
* #pw-summary-changes Methods to support tracking and retrieval of changes made to the object.
|
|
|
|
|
* #pw-summary-hooks Methods for managing hooks for an object instance or class.
|
|
|
|
|
*
|
|
|
|
|
* ProcessWire 3.x, Copyright 2021 by Ryan Cramer
|
|
|
|
|
* ProcessWire 3.x, Copyright 2022 by Ryan Cramer
|
|
|
|
|
* https://processwire.com
|
|
|
|
|
*
|
|
|
|
|
* #pw-use-constants
|
|
|
|
@@ -1265,13 +1265,19 @@ abstract class Wire implements WireTranslatable, WireFuelable, WireTrackable {
|
|
|
|
|
* #pw-group-notices
|
|
|
|
|
*
|
|
|
|
|
* @param string|array|Wire $text Text to include in the notice
|
|
|
|
|
* @param int|bool|string $flags Optional flags to alter default behavior:
|
|
|
|
|
* @param int|bool|string $flags Optional flags to alter default behavior:
|
|
|
|
|
* - `Notice::admin` (constant): Show notice only if user is in the admin.
|
|
|
|
|
* - `Notice::allowMarkdown` (constant): Allow basic markdown and bracket markup (see $sanitizer->entitiesMarkdown()).
|
|
|
|
|
* - `Notice::allowMarkup` (constant): Indicates notice should allow the use of HTML markup tags.
|
|
|
|
|
* - `Notice::debug` (constant): Indicates notice should only be shown when debug mode is active.
|
|
|
|
|
* - `Notice::log` (constant): Indicates notice should also be logged.
|
|
|
|
|
* - `Notice::logOnly` (constant): Indicates notice should only be logged.
|
|
|
|
|
* - `Notice::allowMarkup` (constant): Indicates notice should allow the use of HTML markup tags.
|
|
|
|
|
* - `Notice::login` (constant): Show notice only if it will be seen by a logged-in user.
|
|
|
|
|
* - `Notice::noGroup` (constant): Indicates notice should not group with others of the same type (where supported).
|
|
|
|
|
* - `Notice::prepend` (constant): Indicates notice should prepend rather than append.
|
|
|
|
|
* - `Notice::superuser` (constant): Show notice only if current user is a superuser.
|
|
|
|
|
* - `true` (boolean): Shortcut for the `Notice::log` constant.
|
|
|
|
|
* - In 3.0.149+ you may also specify a space-separated string of flag names.
|
|
|
|
|
* - In 3.0.149+ you may also specify a space-separated string of flag names, i.e. "admin log noGroup".
|
|
|
|
|
* @return $this
|
|
|
|
|
* @see Wire::messages(), Wire::warning(), Wire::error()
|
|
|
|
|
*
|
|
|
|
@@ -1297,12 +1303,18 @@ abstract class Wire implements WireTranslatable, WireFuelable, WireTrackable {
|
|
|
|
|
*
|
|
|
|
|
* @param string|array|Wire $text Text to include in the notice
|
|
|
|
|
* @param int|bool|string $flags Optional flags to alter default behavior:
|
|
|
|
|
* - `Notice::admin` (constant): Show notice only if user is in the admin.
|
|
|
|
|
* - `Notice::allowMarkdown` (constant): Allow basic markdown and bracket markup (see $sanitizer->entitiesMarkdown()).
|
|
|
|
|
* - `Notice::allowMarkup` (constant): Indicates notice should allow the use of HTML markup tags.
|
|
|
|
|
* - `Notice::debug` (constant): Indicates notice should only be shown when debug mode is active.
|
|
|
|
|
* - `Notice::log` (constant): Indicates notice should also be logged.
|
|
|
|
|
* - `Notice::logOnly` (constant): Indicates notice should only be logged.
|
|
|
|
|
* - `Notice::allowMarkup` (constant): Indicates notice should allow the use of HTML markup tags.
|
|
|
|
|
* - `Notice::login` (constant): Show notice only if it will be seen by a logged-in user.
|
|
|
|
|
* - `Notice::noGroup` (constant): Indicates notice should not group with others of the same type (where supported).
|
|
|
|
|
* - `Notice::prepend` (constant): Indicates notice should prepend rather than append.
|
|
|
|
|
* - `Notice::superuser` (constant): Show notice only if current user is a superuser.
|
|
|
|
|
* - `true` (boolean): Shortcut for the `Notice::log` constant.
|
|
|
|
|
* - In 3.0.149+ you may also specify a space-separated string of flag names.
|
|
|
|
|
* - In 3.0.149+ you may also specify a space-separated string of flag names, i.e. "admin log noGroup".
|
|
|
|
|
* @return $this
|
|
|
|
|
* @see Wire::warnings(), Wire::message(), Wire::error()
|
|
|
|
|
*
|
|
|
|
@@ -1330,12 +1342,18 @@ abstract class Wire implements WireTranslatable, WireFuelable, WireTrackable {
|
|
|
|
|
*
|
|
|
|
|
* @param string|array|Wire $text Text to include in the notice
|
|
|
|
|
* @param int|bool|string $flags Optional flags to alter default behavior:
|
|
|
|
|
* - `Notice::admin` (constant): Show notice only if user is in the admin.
|
|
|
|
|
* - `Notice::allowMarkdown` (constant): Allow basic markdown and bracket markup (see $sanitizer->entitiesMarkdown()).
|
|
|
|
|
* - `Notice::allowMarkup` (constant): Indicates notice should allow the use of HTML markup tags.
|
|
|
|
|
* - `Notice::debug` (constant): Indicates notice should only be shown when debug mode is active.
|
|
|
|
|
* - `Notice::log` (constant): Indicates notice should also be logged.
|
|
|
|
|
* - `Notice::logOnly` (constant): Indicates notice should only be logged.
|
|
|
|
|
* - `Notice::allowMarkup` (constant): Indicates notice should allow the use of HTML markup tags.
|
|
|
|
|
* - `Notice::login` (constant): Show notice only if it will be seen by a logged-in user.
|
|
|
|
|
* - `Notice::noGroup` (constant): Indicates notice should not group with others of the same type (where supported).
|
|
|
|
|
* - `Notice::prepend` (constant): Indicates notice should prepend rather than append.
|
|
|
|
|
* - `Notice::superuser` (constant): Show notice only if current user is a superuser.
|
|
|
|
|
* - `true` (boolean): Shortcut for the `Notice::log` constant.
|
|
|
|
|
* - In 3.0.149+ you may also specify a space-separated string of flag names.
|
|
|
|
|
* - In 3.0.149+ you may also specify a space-separated string of flag names, i.e. "admin log noGroup".
|
|
|
|
|
* @return $this
|
|
|
|
|
* @see Wire::errors(), Wire::message(), Wire::warning()
|
|
|
|
|
*
|
|
|
|
|