本文整理汇总了PHP中SugarEmailAddress::getEmailAddressWidgetDetailView方法的典型用法代码示例。如果您正苦于以下问题:PHP SugarEmailAddress::getEmailAddressWidgetDetailView方法的具体用法?PHP SugarEmailAddress::getEmailAddressWidgetDetailView怎么用?PHP SugarEmailAddress::getEmailAddressWidgetDetailView使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SugarEmailAddress
的用法示例。
在下文中一共展示了SugarEmailAddress::getEmailAddressWidgetDetailView方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getEmailAddressWidget
/**
* Convenience function for MVC (Mystique)
* @param object $focus SugarBean
* @param string $field unused
* @param string $value unused
* @param string $view DetailView or EditView
* @return string
*/
function getEmailAddressWidget($focus, $field, $value, $view, $tabindex = '0')
{
$sea = new SugarEmailAddress();
$sea->setView($view);
if ($view == 'EditView' || $view == 'QuickCreate' || $view == 'ConvertLead') {
$module = $focus->module_dir;
if ($view == 'ConvertLead' && $module == "Contacts") {
$module = "Leads";
}
return $sea->getEmailAddressWidgetEditView($focus->id, $module, false, '', $tabindex);
}
return $sea->getEmailAddressWidgetDetailView($focus);
}
示例2: getEmailAddressWidget
/**
* Convenience function for MVC (Mystique)
* @param object $focus SugarBean
* @param string $field unused
* @param string $value unused
* @param string $view DetailView or EditView
* @return string
*/
function getEmailAddressWidget($focus, $field, $value, $view)
{
$sea = new SugarEmailAddress();
$sea->setView($view);
if ($view == 'EditView' || $view == 'QuickCreate') {
return $sea->getEmailAddressWidgetEditView($focus->id, $focus->module_dir, false);
}
return $sea->getEmailAddressWidgetDetailView($focus);
}