本文整理汇总了PHP中CRM_Core_BAO_Address::allAddress方法的典型用法代码示例。如果您正苦于以下问题:PHP CRM_Core_BAO_Address::allAddress方法的具体用法?PHP CRM_Core_BAO_Address::allAddress怎么用?PHP CRM_Core_BAO_Address::allAddress使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CRM_Core_BAO_Address
的用法示例。
在下文中一共展示了CRM_Core_BAO_Address::allAddress方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testnullallAddress
/**
* AllAddress() method ( ) with null value
*/
public function testnullallAddress()
{
$contactId = Contact::createIndividual();
$fixParams = array('street_address' => 'E 906N Pine Pl W', 'supplemental_address_1' => 'Editorial Dept', 'supplemental_address_2' => '', 'city' => 'El Paso', 'postal_code' => '88575', 'postal_code_suffix' => '', 'state_province_id' => '1001', 'country_id' => '1228', 'geo_code_1' => '31.694842', 'geo_code_2' => '-106.29998', 'location_type_id' => '1', 'is_primary' => '1', 'is_billing' => '0', 'contact_id' => $contactId);
CRM_Core_BAO_Address::add($fixParams, $fixAddress = TRUE);
$addParams = $this->assertDBNotNull('CRM_Core_DAO_Address', $contactId, 'id', 'contact_id', 'Database check for created contact address.');
$contact_Id = NULL;
$allAddress = CRM_Core_BAO_Address::allAddress($contact_Id);
$this->assertEquals($allAddress, NULL, 'Checking null for returned addresses.');
Contact::delete($contactId);
}