/** * Check if the attribute wants to be shown on a certain tab. * * @param string $tab The name of the tab to check. * * @return bool */ public function showOnTab($tab) { if ($this->hasFlag(self::AF_ONETOONE_INTEGRATE) && $this->createDestination()) { foreach (array_keys($this->m_destInstance->m_attribList) as $attribname) { $p_attrib = $this->m_destInstance->m_attribList[$attribname]; if ($p_attrib->showOnTab($tab)) { return true; } // If we have one match, we can return true. } // None of the destionation attributes wants to be displayed on the tab. // If the entire onetoone itself is on that tab however, we should put all attribs on // this tab. return parent::showOnTab($tab); } return parent::showOnTab($tab); }