models/Notification.php
public static function error($key, $user_id, $key_id = null)
    {
        return static::notify($key, $user_id, $key_id, self::TYPE_ERROR);
    }
public static function error($key, $user_id, $key_id = null)
    {
        return static::notify($key, $user_id, $key_id, self::TYPE_ERROR);
    }
public static function error ( $ key , $ user_id , $ key_id = null ) { return static :: notify ( $ key , $ user_id , $ key_id , self :: TYPE_ERROR ) ; }
Creates an error notification

@param string $key
@param integer $user_id The user id that will get the notification
@param string $key_id The notification key id
@return bool Returns TRUE on success, FALSE on failure
Creates an error notification