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

__construct()

Start of public functions

parseDataFile()

No description

string
getContactType($id)

No description

initDB()

No description

initID()

this function creates arrays for the following

addDomain()

addDomain()

string
randomName()

No description

addContact()

addContact()

addIndividual()

addIndividual()

addHousehold()

addHousehold()

addOrganization()

addOrganization()

addRelationship()

addRelationship()

addLocation()

addLocation()

addEntityTag()

addTagEntity()

addGroup()

addGroup()

addNote()

addNote()

addActivity()

addActivity()

static array
getZipCodeInfo()

No description

static array
getLatLong($zipCode)

No description

addMembershipType()

No description

addMembership()

No description

static string
repairDate($date)

No description

addMembershipLog()

No description

createEvent()

No description

addParticipant()

No description

addPCP()

No description

addContribution()

No description

addSoftContribution()

No description

addPledge()

No description

addPledgePayment()

No description

addMembershipPayment()

No description

Details

at line 428
__construct()

Start of public functions

at line 436
parseDataFile()

at line 562
string getContactType($id)

Parameters

$id

Return Value

string

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()

Return Value

string

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

at line 1238
static array getZipCodeInfo()

Return Value

array

at line 1257
static array getLatLong($zipCode)

Parameters

$zipCode

Return Value

array

at line 1285
addMembershipType()

at line 1301
addMembership()

at line 1385
static string repairDate($date)

Parameters

$date

Return Value

string

at line 1390
addMembershipLog()

at line 1414
createEvent()

at line 1527
addParticipant()

at line 1559
addPCP()

at line 1569
addContribution()

at line 1586
addSoftContribution()

at line 1614
addPledge()

at line 1625
addPledgePayment()

at line 1641
addMembershipPayment()