/** * Ask if the $this tab object is the current tab * * @param TabView $tabView * @param EasyView $curViewObj current View Object * @param string $curViewName name of the current view * @return boolean TRUE if on the current tab, otherwise FALSE */ public function isCurrentTab($tabView, $curViewObj, $curViewName) { //--jmmz $currentTab = false; //this variable save 'true' if is the current tab and 'false' in otherwise --jmmz if ($this->m_CurrentTab) { $currentTab = $this->m_CurrentTab == $tabView->m_Name || $this->m_CurrentTab == $tabView->m_Tab ? TRUE : FALSE; } elseif ($tabView->m_ViewSet) { if ($curViewObj) { // check if current view's viewset == tview->m_ViewSet $currentTab = $curViewObj->getViewSet() == $tabView->m_ViewSet ? true : false; } } else { $currentTab = $curViewName == $tabView->m_View || $curViewObj->m_Tab == $tabView->m_Name ? true : false; } return $currentTab; }