- Phalcon\Flash\AbstractFlash
- Phalcon\Flash\Direct
- Phalcon\Flash\Exception
- Phalcon\Flash\FlashInterface
- Phalcon\Flash\Session
Abstract Class Phalcon\Flash\AbstractFlash
| Namespace | Phalcon\Flash | | Uses | Phalcon\Di, Phalcon\Di\DiInterface, Phalcon\Di\AbstractInjectionAware, Phalcon\Escaper\EscaperInterface, Phalcon\Session\ManagerInterface | | Extends | AbstractInjectionAware | | Implements | FlashInterface |
Shows HTML notifications related to different circumstances. Classes can be stylized using CSS
Properties¶
/**
* @var bool
*/
protected autoescape = true;
/**
* @var bool
*/
protected automaticHtml = true;
/**
* @var array
*/
protected cssClasses;
/**
* @var string
*/
protected customTemplate = ;
/**
* @var EscaperInterface | null
*/
protected escaperService;
/**
* @var bool
*/
protected implicitFlush = true;
/**
* @var array
*/
protected messages;
/**
* @var SessionInterface | null
*/
protected sessionService;
Methods¶
Phalcon\Flash constructor Clears accumulated messages when implicit flush is disabled Shows a HTML error message Returns the Escaper Service Shows a HTML notice/information message Outputs a message formatting it with HTML Set the autoescape mode in generated HTML Set if the output must be implicitly formatted with HTML Set an array with CSS classes to format the messages Set an custom template for showing the messages Sets the Escaper Service Set whether the output must be implicitly flushed to the output or returned as string Shows a HTML success message Shows a HTML warning messageClass Phalcon\Flash\Direct
| Namespace | Phalcon\Flash | | Extends | AbstractFlash |
This is an implementation of the Phalcon\Flash\FlashInterface that immediately outputs any message passed to it.
Methods¶
Outputs a message Prints the messages accumulated in the flasherClass Phalcon\Flash\Exception
| Namespace | Phalcon\Flash | | Extends | \Phalcon\Exception |
Exceptions thrown in Phalcon\Flash classes will use this class
Interface Phalcon\Flash\FlashInterface
| Namespace | Phalcon\Flash |
Phalcon\Flash\FlashInterface
Interface for Phalcon\Flash classes
Methods¶
Shows a HTML error message Outputs a message Shows a HTML notice/information message Shows a HTML success message Shows a HTML warning messageClass Phalcon\Flash\Session
| Namespace | Phalcon\Flash | | Uses | Phalcon\Di\DiInterface, Phalcon\Session\ManagerInterface | | Extends | AbstractFlash |
This is an implementation of the Phalcon\Flash\FlashInterface that temporarily stores the messages in session, then messages can be printed in the next request.