Add active option
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 1 Oct 2019 15:32:12 +0000 (11:32 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 1 Oct 2019 15:32:12 +0000 (11:32 -0400)
Active option to get all active id's.

index.php
models/admin/ajax/relay.php

index 62dcc11..9ee81cf 100644 (file)
--- a/index.php
+++ b/index.php
@@ -3,7 +3,7 @@
  * Plugin Name: GLM Members Database Relay
  * Plugin URI: http://www.gaslightmedia.com/
  * Description: Relay Add On
- * Version: 1.0.1
+ * Version: 1.0.2
  * Author: Gaslight Media
  * Author URI: http://www.gaslightmedia.com/
  * License: GPL2
@@ -19,7 +19,7 @@
  * @package glmMembersRelayAddOn
  * @author Chuck Scott <cscott@gaslightmedia.com>
  * @license http://www.gaslightmedia.com Gaslightmedia
- * @version 1.0.1
+ * @version 1.0.2
  */
 
 // Check that we're being called by WordPress.
@@ -43,7 +43,7 @@ if (!defined('ABSPATH')) {
  *  so that we're sure the other add-ons see an up to date
  *  version from this plugin.
  */
-define('GLM_MEMBERS_RELAY_PLUGIN_VERSION', '1.0.1');
+define('GLM_MEMBERS_RELAY_PLUGIN_VERSION', '1.0.2');
 
 /**
  * Database Version
index 1968138..0a10588 100644 (file)
@@ -96,6 +96,14 @@ class GlmMembersAdmin_ajax_relay extends GlmDataMessages
             $messages = $this->getList( 'T.status = 10', 'T.updated DESC' );
             break;
 
+        case 'active':
+            $messages = $this->wpdb->get_results(
+                "SELECT id
+                   FROM " . $this->table,
+                ARRAY_A
+            );
+            break;
+
         case 'since':
             if ( isset( $_REQUEST['timestamp'] ) ) {
                 $timestamp = filter_var( $_REQUEST['timestamp'], FILTER_VALIDATE_INT );