switch( $option ) {
case 'test':
+ /**
+ * test:
+ *
+ * Test the notification email.
+ * Currently this is just using a hard coded account id of 1.
+ * After the test it will call wp_die
+ */
echo '<pre>$_REQUEST: ' . print_r( $_REQUEST, true ) . '</pre>';
require_once GLM_MEMBERS_BILLING_PLUGIN_CLASS_PATH . '/notifications.php';
$Notifications = new GlmNotifications( $this->wpdb, $this->config );
}
wp_die('Testing here');
break;
+
case 'add':
+ /**
+ * add:
+ *
+ * This calls the dataabstract newEntry method and sets up the
+ * edit for for creating a new notification_type.
+ */
$notification = $this->newEntry();
$view = 'editNotificationType';
break;
case 'insert':
+ /**
+ * insert:
+ *
+ * Calls the insertEntry method that stores the actual data for the data abstract class.
+ */
$view = 'editNotificationType';
$notification = $this->insertEntry();
if ( $notification['status'] ) {
break;
case 'edit':
+ /**
+ * edit:
+ *
+ * Calls the editEntry method to setup the edit form for this record by id.
+ */
$notification = $this->editEntry( $id );
$view = 'editNotificationType';
break;
case 'update':
+ /**
+ * update:
+ *
+ * Calls the updateEntry method for the data abstract to save the edit data.
+ */
if ($id > 0) {
$notification = $this->updateEntry($id);
if ( $notification['status'] ) {
break;
case 'delete':
+ /**
+ * delete:
+ *
+ * Calls the delete entry method of the dataabstract class.
+ * To delete the given entry by id.
+ */
if ($id > 0) {
$this->deleteEntry($id, true);
}