/** * call preprocess */ public function preProcess() { parent::preProcess(); //get all the existing ims $im = new CRM_Core_BAO_IM(); $im->contact_id = $this->_contactId; $this->_ims = CRM_Core_BAO_Block::retrieveBlock($im, NULL); }
/** * Call preprocess. */ public function preProcess() { parent::preProcess(); //get all the existing openids $openid = new CRM_Core_BAO_OpenID(); $openid->contact_id = $this->_contactId; $this->_openids = CRM_Core_BAO_Block::retrieveBlock($openid, NULL); }
/** * call preprocess */ public function preProcess() { parent::preProcess(); //get all the existing phones $phone = new CRM_Core_BAO_Phone(); $phone->contact_id = $this->_contactId; $this->_phones = CRM_Core_BAO_Block::retrieveBlock($phone, NULL); }
/** * call preprocess */ public function preProcess() { parent::preProcess(); //get all the existing email addresses $email = new CRM_Core_BAO_Email(); $email->contact_id = $this->_contactId; $this->_emails = CRM_Core_BAO_Block::retrieveBlock($email, NULL); }
/** * call preprocess */ public function preProcess() { //get all the existing email addresses $this->_contactId = CRM_Utils_Request::retrieve('cid', 'Positive', $this, TRUE, NULL, $_REQUEST); $this->assign('contactId', $this->_contactId); $email = new CRM_Core_BAO_Email(); $email->contact_id = $this->_contactId; $this->_emails = CRM_Core_BAO_Block::retrieveBlock($email, NULL); }
/** * call preprocess */ public function preProcess() { //get all the existing phones $this->_contactId = CRM_Utils_Request::retrieve('cid', 'Positive', $this, TRUE, NULL, $_REQUEST); $this->assign('contactId', $this->_contactId); $phone = new CRM_Core_BAO_Phone(); $phone->contact_id = $this->_contactId; $this->_phones = CRM_Core_BAO_Block::retrieveBlock($phone, NULL); }
/** * Call preprocess. */ public function preProcess() { parent::preProcess(); //get all the existing email addresses $email = new CRM_Core_BAO_Email(); $email->contact_id = $this->_contactId; $this->_emails = CRM_Core_BAO_Block::retrieveBlock($email, NULL); // Check if this contact has a first/last/organization/household name if ($this->_contactType == 'Individual') { $this->contactHasName = (bool) (CRM_Core_DAO::getFieldValue('CRM_Contact_DAO_Contact', $this->_contactId, 'last_name') || CRM_Core_DAO::getFieldValue('CRM_Contact_DAO_Contact', $this->_contactId, 'first_name')); } else { $this->contactHasName = (bool) CRM_Core_DAO::getFieldValue('CRM_Contact_DAO_Contact', $this->_contactId, strtolower($this->_contactType) . '_name'); } }