1 Data is generated at random for the tables in the crm database.
3 The list below are enums from the database (except the last 2).
4 private $preferred_communication_method = array('Phone', 'Email', 'Post');
5 private $greeting_type = array('Formal', 'Informal', 'Honorific', 'Custom', 'Other');
6 private $contact_type = array('Individual', 'Household', 'Organization');
7 private $gender = array('Female', 'Male', 'Transgender');
8 private $phone_type = array('Phone', 'Mobile', 'Fax', 'Pager');
11 private $prefix = array('Mr', 'Mrs', 'Ms', 'Dr');
12 private $suffix = array('Jr', 'Sr');
16 The entities below are used for generating names, emails, phones and addresses
17 for Individual, household and organization. They are stored in the xml file
18 sample_data.xml so please feel free to add names, lastnames to it.
20 // store names, firstnames, street 1, street2
21 private $first_name = array();
22 private $last_name = array();
23 private $street_name = array();
24 private $supplemental_address_1 = array();
25 private $address_direction = array();
26 private $street_type = array();
27 private $email_domain = array();
28 private $email_tld = array();
29 private $organization_name = array();
30 private $organization_field = array();
31 private $organization_type = array();
37 Here is some of the sample data id's which are generated.
40 *******************************************************
58 *******************************************************
166 *******************************************************
249 *******************************************************
272 *******************************************************
290 ID's of individuals with no family's. (TRUE INDIVIDUALS)
291 *******************************************************
292 strict_individual_array
314 Mapping of Household with Individuals.
315 Currently it's a simple mapping of
316 each household has 4 members.
318 1st and 2nd members are spouses
319 3rd and 4th members are siblings.
321 1st member is the head of the household and the rest are members.
323 *******************************************************
324 household_individual_array
328 Household ID's (maps to elements in the household array).
333 [0] => 3 <- head of household
334 [1] => 55 <- member of household, spouse of 1st member
335 [2] => 49 <- " , child of 1st and 2nd,
336 [3] => 74 <- " , " , sibling of 3rd