--- /dev/null
+<?php
+ require_once GLM_MEMBERS_REGISTRATIONS_PLUGIN_CLASS_PATH.'/data/dataRegEvent.php';
+
+ class GlmMembersFront_registrations_registrationSelect extends GlmDataRegistrationsRegEvent {
+ /**
+ * WordPress Database Object
+ *
+ * @var $wpdb
+ * @access public
+ */
+ public $wpdb;
+ /**
+ * Plugin Configuration Data
+ *
+ * @var $config
+ * @access public
+ */
+ public $config;
+ /**
+ * Constructor
+ *
+ * This contructor performs the work for this model. This model returns
+ * an array containing the following.
+ *
+ * 'status'
+ *
+ * True if successfull and false if there was a fatal failure.
+ *
+ * 'view'
+ *
+ * A suggested view name that the contoller should use instead of the
+ * default view for this model or false to indicate that the default view
+ * should be used.
+ *
+ * 'data'
+ *
+ * Data that the model is returning for use in merging with the view to
+ * produce output.
+ *
+ * @wpdb object WordPress database object
+ *
+ * @return array Array containing status, suggested view, and any data
+ */
+
+ public function modelAction($actionData = false)
+ {
+
+ // Get any provided option
+ if (isset($_REQUEST['option'])) {
+ $option = $_REQUEST['option'];
+ }
+
+ // Get account ID if supplied
+ if (isset($_REQUEST['account'])) {
+
+ // Make sure it's numeric
+ $this->accountID = ($_REQUEST['account'] - 0);
+
+ if ($this->accountID <= 0) {
+ $this->accountID = false;
+ }
+ }
+
+ $view = 'registrationSelect';
+
+ switch ( $option ) {
+
+ }
+
+ // Compile template data
+ $templateData = array(
+
+ );
+ // Return status, any suggested view, and any data to controller
+ return array(
+ 'status' => true,
+ 'modelRedirect' => false,
+ 'view' => 'front/registrations/' . $view . '.html',
+ 'data' => $templateData
+ );
+
+ }
+ }
'member_only' => false,
)
),
+ 'glm-registration-select' => array(
+ 'plugin' => GLM_MEMBERS_REGISTRATIONS_PLUGIN_SLUG,
+ 'menu' => 'registrations',
+ 'action' => 'registrationSelect',
+ 'table' => false,
+ 'attributes' => array(
+ 'id' => false,
+ 'member_only' => false,
+ )
+ ),
);
$glmMembersRegistrationsShortcodesDescription = '';