本文整理汇总了PHP中Opportunity::get_linked_fields方法的典型用法代码示例。如果您正苦于以下问题:PHP Opportunity::get_linked_fields方法的具体用法?PHP Opportunity::get_linked_fields怎么用?PHP Opportunity::get_linked_fields使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Opportunity
的用法示例。
在下文中一共展示了Opportunity::get_linked_fields方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: processListViews
/**
* Add and Remove fields from all the list views
*
* @param array $fieldMap How are we going to change the fields
* @return array The Modules which had their subpanels affected
*/
public function processListViews(array $fieldMap)
{
// get the views for the module
$mm = MetadataManager::getManager();
$views = $mm->getModuleViews('Opportunities');
// fix the selected-list view
$this->processSelectedListView($fieldMap);
// fix the dupecheck-list view
$this->processDupeCheckListView($fieldMap);
// get the generic list view
$this->processListView($fieldMap);
// get the mobile list view now
$this->processMobileListView($fieldMap);
$subpanel_modules = array('Opportunities');
$links = $this->bean->get_linked_fields();
foreach ($links as $link => $def) {
if ($this->bean->load_relationship($link) && $this->bean->{$link} instanceof Link2) {
$linkname = $this->bean->{$link}->getRelatedModuleLinkName();
if (!empty($linkname)) {
$this->processListView($fieldMap, $this->bean->{$link}->getRelatedModuleName(), $linkname);
$subpanel_modules[] = $this->bean->{$link}->getRelatedModuleName();
}
}
}
return $subpanel_modules;
}