当前位置: 首页>>代码示例>>PHP>>正文


PHP CRM_Core_BAO_Block::retrieveBlock方法代码示例

本文整理汇总了PHP中CRM_Core_BAO_Block::retrieveBlock方法的典型用法代码示例。如果您正苦于以下问题:PHP CRM_Core_BAO_Block::retrieveBlock方法的具体用法?PHP CRM_Core_BAO_Block::retrieveBlock怎么用?PHP CRM_Core_BAO_Block::retrieveBlock使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CRM_Core_BAO_Block的用法示例。


在下文中一共展示了CRM_Core_BAO_Block::retrieveBlock方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: preProcess

 /**
  * 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);
 }
开发者ID:hguru,项目名称:224Civi,代码行数:11,代码来源:IM.php

示例2: preProcess

 /**
  * 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);
 }
开发者ID:kidaa30,项目名称:yes,代码行数:11,代码来源:OpenID.php

示例3: preProcess

 /**
  * 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);
 }
开发者ID:prashantgajare,项目名称:civicrm-core,代码行数:11,代码来源:Phone.php

示例4: preProcess

 /**
  * 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);
 }
开发者ID:prashantgajare,项目名称:civicrm-core,代码行数:11,代码来源:Email.php

示例5: preProcess

 /**
  * 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);
 }
开发者ID:peteainsworth,项目名称:civicrm-4.2.9-drupal,代码行数:12,代码来源:Email.php

示例6: preProcess

 /**
  * 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);
 }
开发者ID:peteainsworth,项目名称:civicrm-4.2.9-drupal,代码行数:12,代码来源:Phone.php

示例7: preProcess

 /**
  * 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');
     }
 }
开发者ID:kcristiano,项目名称:civicrm-core,代码行数:17,代码来源:Email.php


注:本文中的CRM_Core_BAO_Block::retrieveBlock方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。