Esempio n. 1
0
File: IM.php Progetto: hguru/224Civi
 /**
  * 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);
 }
Esempio n. 2
0
 /**
  * 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);
 }
Esempio n. 3
0
 /**
  * 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);
 }
Esempio n. 4
0
 /**
  * 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);
 }
Esempio n. 7
0
 /**
  * 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');
     }
 }