public function message(
        $level = 'info',
        $title,
        $content,
        $icon,
        $iconSmall,
        $timeout = 5000
    ) {
        $this->session->flash('notify.level', $level);
        $this->session->flash('notify.title', $title);
        $this->session->flash('notify.content', $content);

        // if icon == true, get icon from level, else if icon is string, set icon
        if ((is_bool($icon) && $icon == true) || strlen($icon) > 1) {
            $icon = is_string($icon) ? $icon : notify_icon($level);

            $this->session->flash('notify.icon', $icon . ' animated');
        }

        // if icon == true, get icon from level, else if icon is string, set icon
        if ((is_bool($iconSmall) && $iconSmall == true) || strlen($iconSmall) > 1) {
            $iconSmall = is_string($iconSmall) ? $iconSmall : notify_icon_small($level);

            $this->session->flash('notify.iconSmall', $iconSmall . ' animated');
        }

        if ($timeout > 0) {
            $this->session->flash('notify.timeout', $timeout);
        }
    }
public function message(
        $level = 'info',
        $title,
        $content,
        $icon,
        $iconSmall,
        $timeout = 5000
    ) {
        $this->session->flash('notify.level', $level);
        $this->session->flash('notify.title', $title);
        $this->session->flash('notify.content', $content);

        // if icon == true, get icon from level, else if icon is string, set icon
        if ((is_bool($icon) && $icon == true) || strlen($icon) > 1) {
            $icon = is_string($icon) ? $icon : notify_icon($level);

            $this->session->flash('notify.icon', $icon . ' animated');
        }

        // if icon == true, get icon from level, else if icon is string, set icon
        if ((is_bool($iconSmall) && $iconSmall == true) || strlen($iconSmall) > 1) {
            $iconSmall = is_string($iconSmall) ? $iconSmall : notify_icon_small($level);

            $this->session->flash('notify.iconSmall', $iconSmall . ' animated');
        }

        if ($timeout > 0) {
            $this->session->flash('notify.timeout', $timeout);
        }
    }
public function message ( $ level = 'info' , $ title , $ content , $ icon , $ iconSmall , $ timeout = 5000 ) { $ this -> session -> flash ( 'notify.level' , $ level ) ; $ this -> session -> flash ( 'notify.title' , $ title ) ; $ this -> session -> flash ( 'notify.content' , $ content ) ; // if icon == true, get icon from level, else if icon is string, set icon if ( ( is_bool ( $ icon ) && $ icon == true ) || strlen ( $ icon ) > 1 ) { $ icon = is_string ( $ icon ) ? $ icon : notify_icon ( $ level ) ; $ this -> session -> flash ( 'notify.icon' , $ icon . ' animated' ) ; } // if icon == true, get icon from level, else if icon is string, set icon if ( ( is_bool ( $ iconSmall ) && $ iconSmall == true ) || strlen ( $ iconSmall ) > 1 ) { $ iconSmall = is_string ( $ iconSmall ) ? $ iconSmall : notify_icon_small ( $ level ) ; $ this -> session -> flash ( 'notify.iconSmall' , $ iconSmall . ' animated' ) ; } if ( $ timeout > 0 ) { $ this -> session -> flash ( 'notify.timeout' , $ timeout ) ; } }
Flash a notification message

@param string      $level
@param             $title
@param             $content
@param bool|string $icon
@param             $iconSmall
@param int         $timeout
Flash a notification message