Mage_Core_Model_Message
in package
Table of Contents
Constants
- ERROR : mixed = 'error'
- NOTICE : mixed = 'notice'
- SUCCESS : mixed = 'success'
- WARNING : mixed = 'warning'
Methods
- error() : Mage_Core_Model_Message_Abstract
- notice() : Mage_Core_Model_Message_Abstract
- success() : Mage_Core_Model_Message_Abstract
- warning() : Mage_Core_Model_Message_Abstract
- _factory() : Mage_Core_Model_Message_Abstract
- Build a message of one type.
Constants
ERROR
public
mixed
ERROR
= 'error'
NOTICE
public
mixed
NOTICE
= 'notice'
SUCCESS
public
mixed
SUCCESS
= 'success'
WARNING
public
mixed
WARNING
= 'warning'
Methods
error()
public
error(string $text, string|Link|null ...$args) : Mage_Core_Model_Message_Abstract
Parameters
- $text : string
- $args : string|Link|null
Tags
Return values
Mage_Core_Model_Message_Abstractnotice()
public
notice(string $text, string|Link|null ...$args) : Mage_Core_Model_Message_Abstract
Parameters
- $text : string
- $args : string|Link|null
Tags
Return values
Mage_Core_Model_Message_Abstractsuccess()
public
success(string $text, string|Link|null ...$args) : Mage_Core_Model_Message_Abstract
Parameters
- $text : string
- $args : string|Link|null
Tags
Return values
Mage_Core_Model_Message_Abstractwarning()
public
warning(string $text, string|Link|null ...$args) : Mage_Core_Model_Message_Abstract
Parameters
- $text : string
- $args : string|Link|null
Tags
Return values
Mage_Core_Model_Message_Abstract_factory()
Build a message of one type.
protected
_factory(string $text, string $type[, array<int, string|Link|null> $args = [] ]) : Mage_Core_Model_Message_Abstract
$text is plain text with %s placeholders. $args fills the placeholders. The renderer escapes the text and each argument. Do not escape them in the caller. A \Maho\Message\Link argument renders as an anchor. A newline renders as a line break.
Parameters
- $text : string
- $type : string
- $args : array<int, string|Link|null> = []