/**
  * This returns all the current urls for EE_Message actions.
  *
  * @since 4.9.0
  *
  * @param  EE_Message   $message    The EE_Message object required to generate correct urls for some types.
  * @param  array    $query_params   Any additional query_params to be included with the generated url.
  *
  * @return array
  */
 public static function get_message_action_urls(EE_Message $message = null, $query_params = array())
 {
     EE_Registry::instance()->load_helper('URL');
     //if $message is not an instance of EE_Message then let's just do a dummy.
     $message = empty($message) ? EE_Message_Factory::create() : $message;
     $action_urls = apply_filters('FHEE__EEH_MSG_Template__get_message_action_url', array('view' => EEH_MSG_Template::generate_browser_trigger($message), 'error' => EEH_MSG_Template::generate_error_display_trigger($message), 'see_notifications_for' => EEH_URL::add_query_args_and_nonce(array_merge(array('page' => 'espresso_messages', 'action' => 'default', 'filterby' => 1), $query_params), admin_url('admin.php')), 'generate_now' => EEH_URL::add_query_args_and_nonce(array('page' => 'espresso_messages', 'action' => 'generate_now', 'MSG_ID' => $message->ID()), admin_url('admin.php')), 'send_now' => EEH_URL::add_query_args_and_nonce(array('page' => 'espresso_messages', 'action' => 'send_now', 'MSG_ID' => $message->ID()), admin_url('admin.php')), 'queue_for_resending' => EEH_URL::add_query_args_and_nonce(array('page' => 'espresso_messages', 'action' => 'queue_for_resending', 'MSG_ID' => $message->ID()), admin_url('admin.php'))));
     if ($message->TXN_ID() > 0 && EE_Registry::instance()->CAP->current_user_can('ee_read_transaction', 'espresso_transactions_default', $message->TXN_ID())) {
         $action_urls['view_transaction'] = EEH_URL::add_query_args_and_nonce(array('page' => 'espresso_transactions', 'action' => 'view_transaction', 'TXN_ID' => $message->TXN_ID()), admin_url('admin.php'));
     } else {
         $action_urls['view_transaction'] = '';
     }
     return $action_urls;
 }
 /**
  * Return the link to the admin details for the object.
  * @return string
  */
 public function get_admin_details_link()
 {
     EE_Registry::instance()->load_helper('URL');
     EE_Registry::instance()->load_helper('MSG_Template');
     switch ($this->STS_ID()) {
         case EEM_Message::status_failed:
         case EEM_Message::status_debug_only:
             return EEH_MSG_Template::generate_error_display_trigger($this);
             break;
         case EEM_Message::status_sent:
             return EEH_MSG_Template::generate_browser_trigger($this);
             break;
         default:
             return '';
     }
 }