Added data classes for management and settings_terms.
authorChuck Scott <cscott@gaslightmedia.com>
Mon, 6 Feb 2017 19:50:53 +0000 (14:50 -0500)
committerChuck Scott <cscott@gaslightmedia.com>
Mon, 6 Feb 2017 19:50:53 +0000 (14:50 -0500)
Fixed a database table name prefix define error (missing trailing "_")
Corrected some errors in the management and settings_terms tables

classes/data/dataManagement.php
classes/data/dataSettingsTerms.php [new file with mode: 0644]
defines.php
setup/databaseScripts/create_database_V0.0.1.sql
setup/databaseScripts/dbVersions.php

index e9f3ca2..ea9ac66 100644 (file)
@@ -13,7 +13,7 @@
  */
 
 /**
- * GlmDataManagementRegistrations class
+ * GlmDataRegistrationsManagement class
  *
  * PHP version 5
  *
@@ -358,153 +358,8 @@ class GlmDataRegistrationsManagement extends GlmDataAbstract
                 'field' => 'medical_info',
                 'type' => 'checkbox',
                 'use' => 'a',
-                'default'  => 0,
-            ),
-
-            // Term for Registrations Name
-            'term_registrations_name' => array (
-                'field' => 'term_registrations_name',
-                'type' => 'text',
-                'required' => true,
-                'use' => 'a'
-            ),
-
-            // Term for
-            'term_registration' => array (
-                'field' => 'term_registration',
-                'type' => 'text',
-                'required' => true,
-                'use' => 'a'
-            ),
-
-            // Term for
-            'term_registrations' => array (
-                'field' => 'term_registrations',
-                'type' => 'text',
-                'required' => true,
-                'use' => 'a'
-            ),
-
-            // Term for
-            'term_register' => array (
-                'field' => 'term_register',
-                'type' => 'text',
-                'required' => true,
-                'use' => 'a'
-            ),
-
-            // Term for
-            '' => array (
-                'field' => '',
-                'type' => 'text',
-                'required' => true,
-                'use' => 'a'
-            ),
-
-            // Term for
-            '' => array (
-                'field' => '',
-                'type' => 'text',
-                'required' => true,
-                'use' => 'a'
-            ),
-
-            // Term for
-            '' => array (
-                'field' => '',
-                'type' => 'text',
-                'required' => true,
-                'use' => 'a'
-            ),
-
-            // Term for
-            '' => array (
-                'field' => '',
-                'type' => 'text',
-                'required' => true,
-                'use' => 'a'
-            ),
-
-            // Term for
-            '' => array (
-                'field' => '',
-                'type' => 'text',
-                'required' => true,
-                'use' => 'a'
-            ),
-
-            // Term for
-            '' => array (
-                'field' => '',
-                'type' => 'text',
-                'required' => true,
-                'use' => 'a'
-            ),
-
-            // Term for
-            '' => array (
-                'field' => '',
-                'type' => 'text',
-                'required' => true,
-                'use' => 'a'
-            ),
-
-            // Term for
-            '' => array (
-                'field' => '',
-                'type' => 'text',
-                'required' => true,
-                'use' => 'a'
-            ),
-
-            // Term for
-            '' => array (
-                'field' => '',
-                'type' => 'text',
-                'required' => true,
-                'use' => 'a'
-            ),
-
-            // Term for
-            '' => array (
-                'field' => '',
-                'type' => 'text',
-                'required' => true,
-                'use' => 'a'
-            ),
-
-            // Term for
-            '' => array (
-                'field' => '',
-                'type' => 'text',
-                'required' => true,
-                'use' => 'a'
-            ),
-
-            // Term for
-            '' => array (
-                'field' => '',
-                'type' => 'text',
-                'required' => true,
-                'use' => 'a'
-            ),
-
-
-
-
-
-/*
-
-                'type' => 'list',
-                'list' => $this->config['payment_method'],
-                'required' => true,
-                'default' => $this->config['status_numb']['Pending'],
-                'use' => 'a'
-            ),
-  */
-
-
-
+                'default'  => 0
+            )
 
         );
 
diff --git a/classes/data/dataSettingsTerms.php b/classes/data/dataSettingsTerms.php
new file mode 100644 (file)
index 0000000..a3fb6d2
--- /dev/null
@@ -0,0 +1,438 @@
+<?php
+/**
+ * GLM Member-DB WordPress Add-On Plugin
+ * Registrations Settings Terms data class
+ *
+ * PHP version 5.3
+ *
+ * @category Data
+ * @package  GLM Member-DB
+ * @author   Chuck Scott <cscott@gaslightmedia.com>
+ * @license  http://www.gaslightmedia.com Gaslightmedia
+ * @release  SVN: $Id: dataSettingsTerms.php,v 1.0 2011/01/25 19:31:47 cscott Exp $
+ */
+
+/**
+ * GlmDataRegistrationsTerms class
+ *
+ * PHP version 5
+ *
+ * @category Data
+ * @package GLM Member DB
+ * @author  Chuck Scott <cscott@gaslightmedia.com>
+ * @license http://www.gaslightmedia.com Gaslightmedia
+ *          @release SVN: $Id: dataSettingsTerms.php,v 1.0 2011/01/25 19:31:47 cscott
+ *          Exp $
+ */
+class GlmDataRegistrationsSettingsTerms extends GlmDataAbstract
+{
+
+    /**
+     * WordPress Database Object
+     *
+     * @var $wpdb
+     * @access public
+     */
+    public $wpdb;
+    /**
+     * Plugin Configuration Data
+     *
+     * @var $config
+     * @access public
+     */
+    public $config;
+    /**
+     * Data Table Name
+     *
+     * @var $table
+     * @access public
+     */
+    public $table;
+    /**
+     * Field definitions
+     *
+     * 'type' is type of field as defined by the application
+     * text Regular text field
+     * pointer Pointer to an entry in another table
+     * 'filters' is the filter name for a particular filter ID in PHP filter
+     * functions
+     * See PHP filter_id()
+     *
+     * 'use' is when to use the field
+     * l = List
+     * g = Get
+     * n = New
+     * i = Insert
+     * e = Edit
+     * u = Update
+     * d = Delete
+     * a = All
+     *
+     * @var $ini
+     * @access public
+     */
+    public $fields = false;
+
+    /**
+     * Constructor
+     *
+     * @param object $d database connection
+     * @param array $config Configuration array
+     * @param bool $limitedEdit Flag to say indicate limited edit requested
+     *
+     * @return void
+     * @access public
+     */
+    public function __construct($wpdb, $config, $limitedEdit = false)
+    {
+
+        // If this class is not being extended along with existing $wpdb and $config
+        if (!$this->wpdb) {
+
+            // Save WordPress Database object
+            $this->wpdb = $wpdb;
+
+            // Save plugin configuration object
+            $this->config = $config;
+
+        }
+
+        /*
+         * Table Name
+         */
+        $this->table = GLM_MEMBERS_REGISTRATIONS_PLUGIN_DB_PREFIX . 'settings_terms';
+
+        /*
+         * Table Data Fields
+         */
+
+        $this->fields = array (
+
+            // Term for Registrations Name
+            'reg_term_registrations_name' => array (
+                'field' => 'reg_term_registrations_name',
+                'type' => 'text',
+                'required' => true,
+                'use' => 'a'
+            ),
+
+            // Term for registration
+            'reg_term_registration' => array (
+                'field' => 'reg_term_registration',
+                'type' => 'text',
+                'required' => true,
+                'use' => 'a'
+            ),
+
+            // Term for Registration (cap)
+            'reg_term_registration_cap' => array (
+                'field' => 'reg_term_registration_cap',
+                'type' => 'text',
+                'required' => true,
+                'use' => 'a'
+            ),
+
+            // Term for registrations (plur)
+            'reg_term_registration_plur' => array (
+                'field' => 'reg_term_registration_plur',
+                'type' => 'text',
+                'required' => true,
+                'use' => 'a'
+            ),
+
+            // Term for Registrations (plur, cap)
+            'reg_term_registration_plur_cap' => array (
+                'field' => 'reg_term_registration_plur_cap',
+                'type' => 'text',
+                'required' => true,
+                'use' => 'a'
+            ),
+
+            // Term for register
+            'reg_term_register' => array (
+                'field' => 'reg_term_register',
+                'type' => 'text',
+                'required' => true,
+                'use' => 'a'
+            ),
+
+            // Term for Register (cap)
+            'reg_term_register_cap' => array (
+                'field' => 'reg_term_register_cap',
+                'type' => 'text',
+                'required' => true,
+                'use' => 'a'
+            ),
+
+            // Term for registers (intransitive verb)
+            'reg_term_registers' => array (
+                'field' => 'reg_term_registers',
+                'type' => 'text',
+                'required' => true,
+                'use' => 'a'
+            ),
+
+            // Term for registering
+            'reg_term_registering' => array (
+                'field' => 'reg_term_registering',
+                'type' => 'text',
+                'required' => true,
+                'use' => 'a'
+            ),
+
+            // Term for Registering (cap)
+            'reg_term_registering_cap' => array (
+                'field' => 'reg_term_registering_cap',
+                'type' => 'text',
+                'required' => true,
+                'use' => 'a'
+            ),
+
+            // Term for registered
+            'reg_term_registered' => array (
+                'field' => 'reg_term_registered',
+                'type' => 'text',
+                'required' => true,
+                'use' => 'a'
+            ),
+
+            // Term for Registered (cap)
+            'reg_term_registered_cap' => array (
+                'field' => 'reg_term_registered_cap',
+                'type' => 'text',
+                'required' => true,
+                'use' => 'a'
+            ),
+
+            // Term for attendee
+            'reg_term_attendee' => array (
+                'field' => 'reg_term_attendee',
+                'type' => 'text',
+                'required' => true,
+                'use' => 'a'
+            ),
+
+            // Term for Attendee (cap)
+            'reg_term_attendee_cap' => array (
+                'field' => 'reg_term_attendee_cap',
+                'type' => 'text',
+                'required' => true,
+                'use' => 'a'
+            ),
+
+            // Term for attendees (plur)
+            'reg_term_attendee_plur' => array (
+                'field' => 'reg_term_attendee_plur',
+                'type' => 'text',
+                'required' => true,
+                'use' => 'a'
+            ),
+
+            // Term for Attendees (plur, cap)
+            'reg_term_attendee_plur_cap' => array (
+                'field' => 'reg_term_attendee_plur_cap',
+                'type' => 'text',
+                'required' => true,
+                'use' => 'a'
+            ),
+
+            // Term for attending
+            'reg_term_attending' => array (
+                'field' => 'reg_term_attending',
+                'type' => 'text',
+                'required' => true,
+                'use' => 'a'
+            ),
+
+            // Term for attended
+            'reg_term_attended' => array (
+                'field' => 'reg_term_attended',
+                'type' => 'text',
+                'required' => true,
+                'use' => 'a'
+            ),
+
+            // Term for registered user
+            'reg_term_registered_user' => array (
+                'field' => 'reg_term_registered_user',
+                'type' => 'text',
+                'required' => true,
+                'use' => 'a'
+            ),
+
+            // Term for Registered user (cap)
+            'reg_term_registered_user_cap' => array (
+                'field' => 'reg_term_registered_user_cap',
+                'type' => 'text',
+                'required' => true,
+                'use' => 'a'
+            ),
+
+            // Term for registered users (plur)
+            'reg_term_registered_user_plur' => array (
+                'field' => 'reg_term_registered_user_plur',
+                'type' => 'text',
+                'required' => true,
+                'use' => 'a'
+            ),
+
+            // Term for Registered users (plur, cap)
+            'reg_term_registered_user_plur_cap' => array (
+                'field' => 'reg_term_registered_user_plur_cap',
+                'type' => 'text',
+                'required' => true,
+                'use' => 'a'
+            ),
+
+            // Term for ID
+            'reg_term_id' => array (
+                'field' => 'reg_term_id',
+                'type' => 'text',
+                'required' => true,
+                'use' => 'a'
+            ),
+
+            // Term for ID (cap)
+            'reg_term_id_cap' => array (
+                'field' => 'reg_term_id_cap',
+                'type' => 'text',
+                'required' => true,
+                'use' => 'a'
+            ),
+
+            // Term for IDs (plur)
+            'reg_term_id_plur' => array (
+                'field' => 'reg_term_id_plur',
+                'type' => 'text',
+                'required' => true,
+                'use' => 'a'
+            ),
+
+            // Term for IDs (plur, cap)
+            'reg_term_id_plur_cap' => array (
+                'field' => 'reg_term_id_plur_cap',
+                'type' => 'text',
+                'required' => true,
+                'use' => 'a'
+            ),
+
+            // Term for password
+            'reg_term_password' => array (
+                'field' => 'reg_term_password',
+                'type' => 'text',
+                'required' => true,
+                'use' => 'a'
+            ),
+
+            // Term for Password (cap)
+            'reg_term_password_cap' => array (
+                'field' => 'reg_term_password_cap',
+                'type' => 'text',
+                'required' => true,
+                'use' => 'a'
+            ),
+
+            // Term for passwords (plur)
+            'reg_term_password_plur' => array (
+                'field' => 'reg_term_password_plur',
+                'type' => 'text',
+                'required' => true,
+                'use' => 'a'
+            ),
+
+            // Term for Passwords (plur, cap)
+            'reg_term_password_plur_cap' => array (
+                'field' => 'reg_term_password_plur_cap',
+                'type' => 'text',
+                'required' => true,
+                'use' => 'a'
+            ),
+
+            // Term for instructor
+            'reg_term_instructor' => array (
+                'field' => 'reg_term_instructor',
+                'type' => 'text',
+                'required' => true,
+                'use' => 'a'
+            ),
+
+            // Term for Instructor (cap)
+            'reg_term_instructor_cap' => array (
+                'field' => 'reg_term_instructor_cap',
+                'type' => 'text',
+                'required' => true,
+                'use' => 'a'
+            ),
+
+            // Term for instructors (plur)
+            'reg_term_instructor_plur' => array (
+                'field' => 'reg_term_instructor_plur',
+                'type' => 'text',
+                'required' => true,
+                'use' => 'a'
+            ),
+
+            // Term for Instructors (plur, cap)
+            'reg_term_instructor_plur_cap' => array (
+                'field' => 'reg_term_instructor_plur_cap',
+                'type' => 'text',
+                'required' => true,
+                'use' => 'a'
+            ),
+
+            // Term for payment code
+            'reg_term_payment_code' => array (
+                'field' => 'reg_term_payment_code',
+                'type' => 'text',
+                'required' => true,
+                'use' => 'a'
+            ),
+
+            // Term for Payment code (cap)
+            'reg_term_payment_code_cap' => array (
+                'field' => 'reg_term_payment_code_cap',
+                'type' => 'text',
+                'required' => true,
+                'use' => 'a'
+            ),
+
+            // Term for payment codes (plur)
+            'reg_term_payment_code_plur' => array (
+                'field' => 'reg_term_payment_code_plur',
+                'type' => 'text',
+                'required' => true,
+                'use' => 'a'
+            ),
+
+            // Term for Payment Codes (plur, cap)
+            'reg_term_payment_code_plur_cap' => array (
+                'field' => '',
+                'type' => 'text',
+                'required' => true,
+                'use' => 'a'
+            ),
+
+            // Term for Registration Button
+            'reg_term_registration_button' => array (
+                'field' => 'reg_term_registration_button',
+                'type' => 'text',
+                'required' => true,
+                'use' => 'a'
+            ),
+
+            // Term for Contact Information
+            'reg_term_contact_information' => array (
+                'field' => 'reg_term_contact_information',
+                'type' => 'text',
+                'required' => true,
+                'use' => 'a'
+            )
+
+        );
+
+    }
+
+
+}
+
+?>
\ No newline at end of file
index 783dfdc..4666722 100644 (file)
@@ -13,7 +13,7 @@ define('GLM_MEMBERS_REGISTRATIONS_PLUGIN_SLUG', 'glm-member-db-registrations');
 
 // Database table prefixes - change if using add-on tables
 global $wpdb;
-define('GLM_MEMBERS_REGISTRATIONS_PLUGIN_DB_PREFIX', $wpdb->prefix.'glmMembersRegistrations');
+define('GLM_MEMBERS_REGISTRATIONS_PLUGIN_DB_PREFIX', $wpdb->prefix.'glm_membersRegistrations_');
 define('GLM_MEMBERS_REGISTRATIONS_PLUGIN_ACTIVE_DB_OPTION', 'glmMembersRegistrationsDbVersion');
 
 // Determine which system we're running on - If not provided, assume PRODUCTION
index 9e43764..83308b8 100644 (file)
 -- Only one entry in this table!
 CREATE TABLE {prefix}management (
     id INT NOT NULL AUTO_INCREMENT,
+    canonical_reg_page TINYTEXT NULL,                           -- Canonical page slug for registrations
     -- System Owner Information
-    org_name TINYTEXT NULL,                                     -- Customer Information - Name of Organization
-    org_short TINYTEXT NULL,
-    org_address TINYTEXT NULL,
-    org_city TINYTEXT NULL,
-    org_state TINYTEXT NULL,
-    org_zip TINYTEXT NULL,
-    org_phone TINYTEXT NULL,
-    org_toll_free TINYTEXT NULL,
-    org_internal_email TINYTEXT NULL,
-    org_from_email TINYTEXT NULL,
-    payment_methods TINYINT NULL,                               -- Payment methods available for all registrations - Bitmap - see payment_method in plugin.ini
-    proc_methods TINYINT NULL,                                  -- Payment processing methods available - Bitmap - see proc_method in plugin.ini
-    cc_accepts SMALLINT NULL,                                   -- Credit Cards Accepted - Bitmap - See credit_card in plugin.ini
+    reg_org_name TINYTEXT NULL,                                     -- Customer Information - Name of Organization
+    reg_org_short TINYTEXT NULL,
+    reg_org_address TINYTEXT NULL,
+    reg_org_city TINYTEXT NULL,
+    reg_org_state TINYTEXT NULL,
+    reg_org_zip TINYTEXT NULL,
+    reg_org_phone TINYTEXT NULL,
+    reg_org_toll_free TINYTEXT NULL,
+    reg_org_internal_email TINYTEXT NULL,
+    reg_org_from_email TINYTEXT NULL,
+    reg_payment_methods TINYINT NULL,                               -- Payment methods available for all registrations - Bitmap - see payment_method in plugin.ini
+    reg_proc_methods TINYINT NULL,                                  -- Payment processing methods available - Bitmap - see proc_method in plugin.ini
+    reg_cc_accepts SMALLINT NULL,                                   -- Credit Cards Accepted - Bitmap - See credit_card in plugin.ini
     -- Authorize.net Credentials
-    authorize_net_login TINYTEXT NULL,
-    authorize_net_key TINYTEXT NULL,
-    authorize_net_test TINYINT NULL,                            -- Authorize.net test mode - List - see proc_test_mode in plugin.ini
-    authorize_net_conf BOOLEAN NULL,                            -- Flag to send payment confirmation Email from Authorize.net            
-    authorize_net_merchant_email TINYTEXT NULL,                 -- E-Mail Authorize.net will send copy of confirmation E-Mail
+    reg_authorize_net_login TINYTEXT NULL,
+    reg_authorize_net_key TINYTEXT NULL,
+    reg_authorize_net_test TINYINT NULL,                            -- Authorize.net test mode - List - see proc_test_mode in plugin.ini
+    reg_authorize_net_conf BOOLEAN NULL,                            -- Flag to send payment confirmation Email from Authorize.net            
+    reg_authorize_net_merchant_email TINYTEXT NULL,                 -- E-Mail Authorize.net will send copy of confirmation E-Mail
     -- Merchant Solutions Credentials
-    merchant_solutions_acctid TINYTEXT NULL,                    -- Merchant Solutions credentials
-    merchant_solutions_merchantpin TINYTEXT NULL,
-    merchant_solutions_test TINYINT NULL,                       -- Merchant Solutions test mode - List - see proc_test_mode in plugin.ini
+    reg_merchant_solutions_acctid TINYTEXT NULL,                    -- Merchant Solutions credentials
+    reg_merchant_solutions_merchantpin TINYTEXT NULL,
+    reg_merchant_solutions_test TINYINT NULL,                       -- Merchant Solutions test mode - List - see proc_test_mode in plugin.ini
     -- Billing settings    
-    full_billing_info BOOLEAN NULL,                             -- Always request full billing information in checkout page regardless of the following settings
-    bill_info_req_no_charge TINYINT NULL,                       -- Bitmap of fields to use in checkout for these types of payments - See billing_field in plugin.conf
-    bill_info_req_comp_code TINYINT NULL,     
-    bill_info_req_cash TINYINT NULL,          
-    bill_info_req_check TINYINT NULL,         
-    bill_info_req_credit_card TINYINT NULL,   
-    bill_info_req_merchant_call TINYINT NULL, 
+    reg_full_billing_info BOOLEAN NULL,                             -- Always request full billing information in checkout page regardless of the following settings
+    reg_bill_info_req_no_charge TINYINT NULL,                       -- Bitmap of fields to use in checkout for these types of payments - See billing_field in plugin.conf
+    reg_bill_info_req_comp_code TINYINT NULL,     
+    reg_bill_info_req_cash TINYINT NULL,          
+    reg_bill_info_req_check TINYINT NULL,         
+    reg_bill_info_req_credit_card TINYINT NULL,   
+    reg_bill_info_req_merchant_call TINYINT NULL, 
     -- Misc Options
-    medical_info BOOLEAN NULL,                                  -- This site can ask for "Medical Info" - set in main category of an event
-    -- System Wide Terms 
-    term_registrations_name TINYTEXT NULL,                      -- Term "Event Registration"
-    term_registration TINYTEXT NULL,                            -- Various terms
-    term_registrations TINYTEXT NULL,
-    term_register TINYTEXT NULL,
-    term_registering TINYTEXT NULL,
-    term_registered TINYTEXT NULL,
-    term_attendee TINYTEXT NULL,
-    term_attendees TINYTEXT NULL,
-    term_attending TINYTEXT NULL,
-    term_attended TINYTEXT NULL,
-    term_member TINYTEXT NULL,
-    term_members TINYTEXT NULL,
-    term_user_id TINYTEXT NULL,
-    term_password TINYTEXT NULL,
-    term_instructor TINYTEXT NULL,
-    term_instructors TINYTEXT NULL,
-    -- Titles for various sections
-    title_payment_comp_code TINYTEXT NULL,
-    title_registration_button TINYTEXT NULL,
-    title_contact_information TINYTEXT NULL,
+    reg_medical_info BOOLEAN NULL,                                  -- This site can ask for "Medical Info" - set in main category of an event
+    PRIMARY KEY (id)
+);
+
+----
+
+-- Terms used in site modifiable on Management page in admin - Only 1 entry in this table
+-- Terms in this table should be all self-explanatory
+CREATE TABLE {prefix}settings_terms (
+    id INT NOT NULL AUTO_INCREMENT,
+    reg_term_registrations_name TINYTEXT NULL,                      -- Term "Event Registration"
+    reg_term_registration TINYTEXT NULL,
+    reg_term_registration_cap TINYTEXT NULL,
+    reg_term_registration_plur TINYTEXT NULL,
+    reg_term_registration_plur_cap TINYTEXT NULL,
+    reg_term_register TINYTEXT NULL,
+    reg_term_register_cap TINYTEXT NULL,
+    reg_term_registers TINYTEXT NULL,                               -- Intransitive verb of register
+    reg_term_registering TINYTEXT NULL,
+    reg_term_registering_cap TINYTEXT NULL,
+    reg_term_registered TINYTEXT NULL,
+    reg_term_registered_cap TINYTEXT NULL,
+    reg_term_attendee TINYTEXT NULL,
+    reg_term_attendee_cap TINYTEXT NULL,
+    reg_term_attendee_plur TINYTEXT NULL,
+    reg_term_attendee_plur_cap TINYTEXT NULL,
+    reg_term_attending TINYTEXT NULL,
+    reg_term_attended TINYTEXT NULL,
+    reg_term_registered_user TINYTEXT NULL,
+    reg_term_registered_user_cap TINYTEXT NULL,
+    reg_term_registered_user_plur TINYTEXT NULL,
+    reg_term_registered_user_plur_cap TINYTEXT NULL,
+    reg_term_id TINYTEXT NULL,
+    reg_term_id_cap TINYTEXT NULL,
+    reg_term_id_plur TINYTEXT NULL,
+    reg_term_id_plur_cap TINYTEXT NULL,
+    reg_term_password TINYTEXT NULL,
+    reg_term_password_cap TINYTEXT NULL,
+    reg_term_password_plur TINYTEXT NULL,
+    reg_term_password_plur_cap TINYTEXT NULL,
+    reg_term_instructor TINYTEXT NULL,
+    reg_term_instructor_cap TINYTEXT NULL,
+    reg_term_instructor_plur TINYTEXT NULL,
+    reg_term_instructor_plur_cap TINYTEXT NULL,
+    reg_term_payment_code TINYTEXT NULL,
+    reg_term_payment_code_cap TINYTEXT NULL,
+    reg_term_payment_code_plur TINYTEXT NULL,
+    reg_term_payment_code_plur_cap TINYTEXT NULL,
+    reg_term_registration_button TINYTEXT NULL,
+    reg_term_contact_information TINYTEXT NULL,
     PRIMARY KEY (id)
 );
 
@@ -530,109 +559,163 @@ CREATE TABLE {prefix}reg_request_registrant (
 -- Insert into management table
 INSERT INTO {prefix}management
     (
-    org_name,
-    org_short,
-    org_address,
-    org_city,
-    org_state,
-    org_zip,
-    org_phone,
-    org_toll_free,
-    org_internal_email,
-    org_from_email,
-    payment_methods,
-    proc_methods,
-    cc_accepts,
-    authorize_net_login,
-    authorize_net_key,
-    authorize_net_test,
-    authorize_net_conf,
-    authorize_net_merchant_email,
-    merchant_solutions_acctid,
-    merchant_solutions_merchantpin,
-    merchant_solutions_test,
-    full_billing_info,
-    bill_info_req_no_charge,
-    bill_info_req_comp_code,
-    bill_info_req_cash,
-    bill_info_req_check,
-    bill_info_req_credit_card,
-    bill_info_req_merchant_call,
-    medical_info,
-    term_registrations_name,
-    term_registration,
-    term_registrations,
-    term_register,
-    term_registering,
-    term_registered,
-    term_attendee,
-    term_attendees,
-    term_attending,
-    term_attended,
-    term_member,
-    term_members,
-    term_user_id,
-    term_password,
-    term_instructor,
-    term_instructors,
-    title_payment_comp_code,
-    title_registration_button,
-    title_contact_information
+    canonical_reg_page,
+    reg_org_name,
+    reg_org_short,
+    reg_org_address,
+    reg_org_city,
+    reg_org_state,
+    reg_org_zip,
+    reg_org_phone,
+    reg_org_toll_free,
+    reg_org_internal_email,
+    reg_org_from_email,
+    reg_payment_methods,
+    reg_proc_methods,
+    reg_cc_accepts,
+    reg_authorize_net_login,
+    reg_authorize_net_key,
+    reg_authorize_net_test,
+    reg_authorize_net_conf,
+    reg_authorize_net_merchant_email,
+    reg_merchant_solutions_acctid,
+    reg_merchant_solutions_merchantpin,
+    reg_merchant_solutions_test,
+    reg_full_billing_info,
+    reg_bill_info_req_no_charge,
+    reg_bill_info_req_comp_code,
+    reg_bill_info_req_cash,
+    reg_bill_info_req_check,
+    reg_bill_info_req_credit_card,
+    reg_bill_info_req_merchant_call,
+    reg_medical_info
     )
     VALUES
     (
-    'Gaslight Media',                                           -- org_name,
-    'GLM',                                                      -- org_short,
-    '120 E. Lake St.',                                          -- org_address,
-    'Petoskey',                                                 -- org_city,
-    'MI',                                                       -- org_state,
-    '49770',                                                    -- org_zip,
-    '231-487-0692',                                             -- org_phone,
-    '800-123-1234',                                             -- org_toll_free,
-    'internal@gaslightmedia.com',                               -- org_internal_email,
-    'info@gaslightmedia.com',                                   -- org_from_email,
-    0,                                                          -- payment_methods,
-    0,                                                          -- proc_methods,
-    0,                                                          -- cc_accepts,
-    '',                                                         -- authorize_net_login,
-    '',                                                         -- authorize_net_key,
-    1,                                                          -- authorize_net_test,
-    true,                                                       -- authorize_net_conf
-    '',                                                         -- authorize_net_merchant_email,
-    '',                                                         -- merchant_solutions_acctid,
-    '',                                                         -- merchant_solutions_merchantpin,
-    1,                                                          -- merchant_solutions_test, 
-    true,                                                       -- full_billing_info,
-    0,                                                          -- bill_info_req_no_charge,
-    0,                                                          -- bill_info_req_comp_code,
-    0,                                                          -- bill_info_req_cash,
-    0,                                                          -- bill_info_req_check,
-    0,                                                          -- bill_info_req_credit_card,
-    0,                                                          -- bill_info_req_merchant_call,
-    true,                                                       -- medical_info,
-    'Event Registrations',                                      -- term_registrations_name,
-    'registration',                                             -- term_registration,
-    'registrations',                                            -- term_registrations,
-    'register',                                                 -- term_register,
-    'registering',                                              -- term_registering,
-    'registered',                                               -- term_registered,
-    'attendee',                                                 -- term_attendee,
-    'attendees',                                                -- term_attendees,
-    'attending',                                                -- term_attending,
-    'attended',                                                 -- term_attended,
-    'member',                                                   -- term_member,
-    'members',                                                  -- term_members,
-    'user ID',                                                  -- term_user_id,
-    'password',                                                 -- term_password,
-    'instructor',                                               -- term_instructor,
-    'instructors',                                              -- term_instructors,
-    'comp code',                                                -- title_payment_comp_code,
-    'Complete Registration',                                    -- title_registration_button,
-    'Contact Information'                                      -- title_contact_information
+    'registrations',                                            -- reg_canonical_reg_page,
+    'Gaslight Media',                                           -- reg_org_name,
+    'GLM',                                                      -- reg_org_short,
+    '120 E. Lake St.',                                          -- reg_org_address,
+    'Petoskey',                                                 -- reg_org_city,
+    'MI',                                                       -- reg_org_state,
+    '49770',                                                    -- reg_org_zip,
+    '231-487-0692',                                             -- reg_org_phone,
+    '800-123-1234',                                             -- reg_org_toll_free,
+    'internal@gaslightmedia.com',                               -- reg_org_internal_email,
+    'info@gaslightmedia.com',                                   -- reg_org_from_email,
+    0,                                                          -- reg_payment_methods,
+    0,                                                          -- reg_proc_methods,
+    0,                                                          -- reg_cc_accepts,
+    '',                                                         -- reg_authorize_net_login,
+    '',                                                         -- reg_authorize_net_key,
+    1,                                                          -- reg_authorize_net_test,
+    true,                                                       -- reg_authorize_net_conf
+    '',                                                         -- reg_authorize_net_merchant_email,
+    '',                                                         -- reg_merchant_solutions_acctid,
+    '',                                                         -- reg_merchant_solutions_merchantpin,
+    1,                                                          -- reg_merchant_solutions_test, 
+    true,                                                       -- reg_full_billing_info,
+    0,                                                          -- reg_bill_info_req_no_charge,
+    0,                                                          -- reg_bill_info_req_comp_code,
+    0,                                                          -- reg_bill_info_req_cash,
+    0,                                                          -- reg_bill_info_req_check,
+    0,                                                          -- reg_bill_info_req_credit_card,
+    0,                                                          -- reg_bill_info_req_merchant_call,
+    true                                                        -- reg_medical_info,
     );
 
 ----
 
+-- Insert into settings_terms table
+INSERT INTO {prefix}settings_terms
+    (
+    reg_term_registrations_name,
+    reg_term_registration,
+    reg_term_registration_cap,
+    reg_term_registration_plur,
+    reg_term_registration_plur_cap,
+    reg_term_register,
+    reg_term_register_cap,
+    reg_term_registers,
+    reg_term_registering,
+    reg_term_registering_cap,
+    reg_term_registered,
+    reg_term_registered_cap,
+    reg_term_attendee,
+    reg_term_attendee_cap,
+    reg_term_attendee_plur,
+    reg_term_attendee_plur_cap,
+    reg_term_attending,
+    reg_term_attended,
+    reg_term_registered_user,
+    reg_term_registered_user_cap,
+    reg_term_registered_user_plur,
+    reg_term_registered_user_plur_cap,
+    reg_term_id,
+    reg_term_id_cap,
+    reg_term_id_plur,
+    reg_term_id_plur_cap,
+    reg_term_password,
+    reg_term_password_cap,
+    reg_term_password_plur,
+    reg_term_password_plur_cap,
+    reg_term_instructor,
+    reg_term_instructor_cap,
+    reg_term_instructor_plur,
+    reg_term_instructor_plur_cap,
+    reg_term_payment_code,
+    reg_term_payment_code_cap,
+    reg_term_payment_code_plur,
+    reg_term_payment_code_plur_cap,
+    reg_term_registration_button,
+    reg_term_contact_information
+    )
+    VALUES
+    (
+    'Event Registrations',                                      -- reg_term_registrations_name
+    'registration',                                             -- reg_term_registration
+    'Registration',                                             -- reg_term_registration_cap
+    'registrations',                                            -- reg_term_registration_plur
+    'Registrations',                                            -- reg_term_registration_plur_cap
+    'register',                                                 -- reg_term_registe
+    'Register',                                                 -- reg_term_register_cap
+    'registers',                                                -- reg_term_registers
+    'registering',                                              -- reg_term_registering
+    'Registering',                                              -- reg_term_registering_cap
+    'registered',                                               -- reg_term_registered
+    'Registered',                                               -- reg_term_registered_cap
+    'attendee',                                                 -- reg_term_attendee
+    'Attendee',                                                 -- reg_term_attendee_cap
+    'attendees',                                                -- reg_term_attendee_plur
+    'Attendees',                                                -- reg_term_attendee_plur_cap
+    'attending',                                                -- reg_term_attending
+    'attended',                                                 -- reg_term_attended
+    'user',                                                     -- reg_term_registered_user
+    'User',                                                     -- reg_term_registered_user_cap
+    'users',                                                    -- reg_term_registered_user_plur
+    'Users',                                                    -- reg_term_registered_user_plur_cap
+    'ID',                                                       -- reg_term_id
+    'ID',                                                       -- reg_term_id_cap
+    'IDs',                                                      -- reg_term_id_plur
+    'IDs',                                                      -- reg_term_id_plur_cap
+    'password',                                                 -- reg_term_password
+    'passwords',                                                -- reg_term_password_cap
+    'Password',                                                 -- reg_term_password_plur
+    'Passwords',                                                -- reg_term_password_plur_cap
+    'instructor',                                               -- reg_term_instructor
+    'Instructor',                                               -- reg_term_instructor_cap
+    'instructors',                                              -- reg_term_instructor_plur
+    'Instructors',                                              -- reg_term_instructor_plur_cap
+    'payment code',                                             -- reg_term_payment_code
+    'Payment code',                                             -- reg_term_payment_code_cap
+    'payment codes',                                            -- reg_term_payment_code_plur
+    'Payment codes',                                            -- reg_term_payment_code_plur_cap
+    'Register for Event',                                       -- reg_term_registration_button
+    'Contact Information'                                       -- reg_term_contact_information
+    );
+    
+----
+
 -- Insert into misc table
 INSERT INTO {prefix}misc
     (
index 827a489..2633011 100644 (file)
@@ -12,9 +12,9 @@
  * @release  dbVersions.php $
  * @link     http://dev.gaslightmedia.com/
  */
-/*
+
 $glmMembersRegistrationsDbVersions = array(
-    '0.0.1' => array('version' => '0.0.1', 'tables' => 17, 'date' => '02/6/2017')
+    '0.0.1' => array('version' => '0.0.1', 'tables' => 18, 'date' => '02/6/2017')
 );
-*/
+