*
* @param $cid int: contact id
* @param $masterContactId int: set if this is a shared address
+ *
+ * @return array
*/
private function _addAddress($cid, $masterContactId = NULL) {
* Add a phone number for a contact
*
* @param $cid int: contact id
+ *
+ * @return array
*/
private function _addPhone($cid) {
$area = $this->probability(.5) ? '' : mt_rand(201, 899);
* Add an email for a contact
*
* @param $cid int: contact id
+ * @param $email
+ * @param $locationType
+ *
+ * @return array
*/
private function _addEmail($cid, $email, $locationType) {
$params = array(
*
* @param $cid int: contact id
* @param $name str: contact name
+ *
+ * @return array
*/
private function _addWebsite($cid, $name) {
$part = array_pad(split(' ', strtolower($name)), 3, '');
/**
* Create an email address based on a person's name
* Using common naming patterns
+ *
* @param $contact obj: individual contact record
* @param $domain str: supply a domain (i.e. for a work address)
+ *
+ * @return string
*/
private function _individualEmail($contact, $domain = NULL) {
$first = $contact->first_name;