ice framework documentation ice doc v1.6.2
Methods
  • setOptions(variable $options) : void
  • __construct(array $options) : void
    Flash constructor. Fetch session and tag service from the di.
  • getOption(string $key, variable $defaultValue) : void
    Get option value with key.
  • getMessages(bool $remove) : string
    Display the messages.
  • getMessage(string $type, variable $messages) : string
    Get a message formatting it with HTML.
  • message(string $type, string $message) : void
    Adds a message to the flash.
  • success(string $message) : void
    Add success message.
  • ok(string $message) : void
    Alias of success message.
  • info(string $message) : void
    Add info message.
  • notice(string $message) : void
    Alias of info message.
  • warning(string $message) : void
    Add warning message.
  • alert(string $message) : void
    Alias of warning message.
  • danger(string $message) : void
    Add danger message.
  • error(string $message) : void
    Alias of danger message.
Methods Details
  • public function setOptions(variable $options)

  • public function __construct(array $options)

    Flash constructor. Fetch session and tag service from the di.
  • public function getOption(string $key, variable $defaultValue)

    Get option value with key.
  • public function getMessages(bool $remove)

    Display the messages.
  • public function getMessage(string $type, variable $messages)

    Get a message formatting it with HTML.
  • public function message(string $type, string $message)

    Adds a message to the flash.
  • public function success(string $message)

    Add success message.
  • public function ok(string $message)

    Alias of success message.
  • public function info(string $message)

    Add info message.
  • public function notice(string $message)

    Alias of info message.
  • public function warning(string $message)

    Add warning message.
  • public function alert(string $message)

    Alias of warning message.
  • public function danger(string $message)

    Add danger message.
  • public function error(string $message)

    Alias of danger message.
  • internal function zephir_init_properties_Ice_Flash()