本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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');
}
}