Push updates for list front model.
authorSteve Sutton <steve@gaslightmedia.com>
Mon, 21 Aug 2017 14:47:44 +0000 (10:47 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Mon, 21 Aug 2017 14:47:44 +0000 (10:47 -0400)
This is for Chuck to look at.

models/front/registrations/list.php

index 6aa7bbd..303649f 100644 (file)
 
     public function modelAction($actionData = false)
     {
+        $start      = 1;
+        $limit      = 20;
+        $where      = 'true';
+        $alphaWhere = '';
 
         // Get any provided option
         if (isset($_REQUEST['option'])) {
 
         switch ( $option ) {
 
+        default:
+            // Get a current list of reg events
+            $listResult = $this->getSimpleRegEventsList($where.$alphaWhere, 'event_name', true, 'id', $start, $limit);
+            echo '<pre>$listResult: ' . print_r( $listResult, true ) . '</pre>';
+            break;
+
         }
 
         // including test data for now