* $flash->success("The record was successfully deleted");
* $flash->error("Cannot open the file");
*
*/
abstract class Flash {
protected $_cssClasses;
protected $_implicitFlush;
protected $_automaticHtml;
/**
* \Phalcon\Flash constructor
*
* @param array $cssClasses
*/
public function __construct($cssClasses=null){ }
/**
* Set whether the output must be implictly flushed to the output or returned as string
*
* @param boolean $implicitFlush
* @return \Phalcon\FlashInterface
*/
public function setImplicitFlush($implicitFlush){ }
/**
* Set if the output must be implictily formatted with HTML
*
* @param boolean $automaticHtml
* @return \Phalcon\FlashInterface
*/
public function setAutomaticHtml($automaticHtml){ }
/**
* Set an array with CSS classes to format the messages
*
* @param array $cssClasses
* @return \Phalcon\FlashInterface
*/
public function setCssClasses($cssClasses){ }
/**
* Shows a HTML error message
*
*
* $flash->error('This is an error');
*
*
* @param string $message
* @return string
*/
public function error($message){ }
/**
* Shows a HTML notice/information message
*
*
* $flash->notice('This is an information');
*
*
* @param string $message
* @return string
*/
public function notice($message){ }
/**
* Shows a HTML success message
*
*
* $flash->success('The process was finished successfully');
*
*
* @param string $message
* @return string
*/
public function success($message){ }
/**
* Shows a HTML warning message
*
*
* $flash->warning('Hey, this is important');
*
*
* @param string $message
* @return string
*/
public function warning($message){ }
/**
* Outputs a message formatting it with HTML
*
*
* $flash->outputMessage('error', $message);
*
*
* @param string $type
* @param string $message
*/
public function outputMessage($type, $message){ }
}
}