* Remove this message before using this file in production!
**********************************************************************/
-// Member Info Data required
-require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataMemberInfo.php');
-
/**
* GlmDataSample class
*
* @access public
*/
public $fields = false;
- /**
- * MemberInfo DB object
- *
- * @var $MemberInfo
- * @access public
- */
- public $MemberInfo;
/**
* Constructor
* Perform post-processing for all result entries.
*
* In this case we're using it to append an array of category
- * data to each member result and also sort by member name.
+ * data to each row result and also sort by name.
*
* @param array $r Array of field result data for a single entry
* @param string $a Action being performed (l, i, g, ...)
die('You have database scripts but have not defined a current database version at the top of index.php for this plugin/add-on!');
}
+/*
+ * Check installation, activation, and version of main Member DB plugin
+ */
+
// Check for main plugin and that it's active
function glmMembersSamplePluginRequired() {
echo '
* @link http://dev.gaslightmedia.com/
*/
-// Load Contacts data abstract
-//require_once(GLM_MEMBERS_CONTACTS_PLUGIN_CLASS_PATH.'/data/dataContacts.php');
+// Load Sample data abstract
+require_once(GLM_MEMBERS_SAMPLE_PLUGIN_CLASS_PATH.'/data/dataSample.php');
-class GlmMembersAdmin_members_sample // extends GlmDataContacts
+class GlmMembersAdmin_members_sample extends GlmDataSample
{
/**
* @access public
*/
public $config;
- /**
- * Contact Info
- *
- * @var $contactInfo
- * @access public
- */
- public $contactInfo = false;
- /**
- * Member ID
- *
- * @var $memberID
- * @access public
- */
- public $memberID = false;
- /**
- * Contact ID
- *
- * @var $contactID
- * @access public
- */
- public $contactID = false;
-
/*
* Constructor
public function modelAction($actionData = false)
{
- $displayData = 'This is the Sample "Members" "Sample" model talking to you from inside WordPress.';
+ $displayData = 'This is the Sample model talking to you from inside WordPress.';
// Compile template data
$templateData = array(
$glmMembersSampleDbVersions = array(
- '0.0.1' => array('version' => '0.0.1', 'tables' => 1),
+ '0.0.1' => array('version' => '0.0.1', 'tables' => 1, 'date' => '1/1/2016'),
'0.0.2' => array('version' => '0.0.2', 'tables' => 2)
);