本文整理匯總了PHP中Lead::set_notification_body方法的典型用法代碼示例。如果您正苦於以下問題:PHP Lead::set_notification_body方法的具體用法?PHP Lead::set_notification_body怎麽用?PHP Lead::set_notification_body使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Lead
的用法示例。
在下文中一共展示了Lead::set_notification_body方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: testset_notification_body
public function testset_notification_body()
{
$lead = new Lead();
//test with attributes preset and verify template variables are set accordingly
$lead->first_name = "firstn";
$lead->last_name = "lastn";
$lead->salutation = "Mr";
$lead->lead_source = "Email";
$lead->status = "New";
$lead->description = "tes description";
$result = $lead->set_notification_body(new Sugar_Smarty(), $lead);
$this->assertEquals("Mr firstn lastn", $result->_tpl_vars['LEAD_NAME']);
$this->assertEquals($lead->lead_source, $result->_tpl_vars['LEAD_SOURCE']);
$this->assertEquals($lead->status, $result->_tpl_vars['LEAD_STATUS']);
$this->assertEquals($lead->description, $result->_tpl_vars['LEAD_DESCRIPTION']);
}