CRM_GCD
class CRM_GCD
Class CRM_GCD
Constants
DATA_FILENAME |
|
NUM_DOMAIN |
|
NUM_CONTACT |
|
NUM_CONTRIBUTION |
|
NUM_MEMBERSHIP |
|
NUM_PARTICIPANT |
|
INDIVIDUAL_PERCENT |
|
HOUSEHOLD_PERCENT |
|
ORGANIZATION_PERCENT |
|
NUM_INDIVIDUAL_PER_HOUSEHOLD |
|
NUM_ACTIVITY |
|
CHILD_OF |
|
SPOUSE_OF |
|
SIBLING_OF |
|
HEAD_OF_HOUSEHOLD |
|
MEMBER_OF_HOUSEHOLD |
|
HOME |
|
WORK |
|
MAIN |
|
OTHER |
|
ADD_TO_DB |
|
DEBUG_LEVEL |
|
Methods
Start of public functions
No description
No description
No description
this function creates arrays for the following
addDomain()
No description
addContact()
addIndividual()
addHousehold()
addOrganization()
addRelationship()
addLocation()
addTagEntity()
addGroup()
addNote()
addActivity()
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Details
at line 428
__construct()
Start of public functions
at line 436
parseDataFile()
at line 562
string
getContactType($id)
at line 575
initDB()
at line 595
initID()
this function creates arrays for the following
domain id contact id contact_location id contact_contact_location id contact_email uuid contact_phone_uuid contact_instant_message uuid contact_relationship uuid contact_task uuid contact_note uuid
at line 631
addDomain()
addDomain()
This method adds NUM_DOMAIN domains and then adds NUM_REVISION revisions for each domain with the latest revision being the last one..
at line 655
string
randomName()
at line 676
addContact()
addContact()
This method adds data to the contact table
id - from $contact contact_type 'Individual' 'Household' 'Organization' preferred_communication (random 1 to 3)
at line 710
addIndividual()
addIndividual()
This method adds individual's data to the contact table
The following fields are generated and added.
contact_uuid - individual contact_rid - latest one first_name 'First Name $contact_uuid' middle_name 'Middle Name $contact_uuid' last_name 'Last Name $contact_uuid' job_title 'Job Title $contact_uuid' greeting_type - randomly select from the enum values custom_greeting - "custom greeting $contact_uuid'
at line 750
addHousehold()
addHousehold()
This method adds household's data to the contact table
The following fields are generated and added.
contact_uuid - household_individual contact_rid - latest one household_name 'household $contact_uuid primary contact $primary_contact_uuid' nick_name 'nick $contact_uuid' primary_contact_uuid = $household_individual[$contact_uuid][0];
at line 793
addOrganization()
addOrganization()
This method adds organization data to the contact table
The following fields are generated and added.
contact_uuid - organization contact_rid - latest one organization_name 'organization $contact_uuid' legal_name 'legal $contact_uuid' nick_name 'nick $contact_uuid' sic_code 'sic $contact_uuid' primary_contact_id - random individual contact uuid
at line 819
addRelationship()
addRelationship()
This method adds data to the contact_relationship table
it adds the following fields
at line 879
addLocation()
addLocation()
This method adds data to the location table
at line 1025
addEntityTag()
addTagEntity()
This method populates the crm_entity_tag table
at line 1062
addGroup()
addGroup()
This method populates the crm_entity_tag table
at line 1161
addNote()
addNote()
This method populates the crm_note table
at line 1182
addActivity()
addActivity()
This method populates the crm_activity_history table