src/View/Helper/MelisModal.php
protected function getTabPosition(array $tabs, $tabValue)
    {
        $position = 0;
        $ctr = 0;
        foreach($tabs as $keys => $values)
        {
            if($keys == $tabValue)
            {
                $position = $ctr;
            }
            $ctr++;
        }
        return $position;
    }
protected function getTabPosition(array $tabs, $tabValue)
    {
        $position = 0;
        $ctr = 0;
        foreach($tabs as $keys => $values)
        {
            if($keys == $tabValue)
            {
                $position = $ctr;
            }
            $ctr++;
        }
        return $position;
    }
protected function getTabPosition ( array $ tabs , $ tabValue ) { $ position = 0 ; $ ctr = 0 ; foreach ( $ tabs as $ keys => $ values ) { if ( $ keys == $ tabValue ) { $ position = $ ctr ; } $ ctr ++ ; } return $ position ; }
Returns the position of the Tab you want to
be selected.
@param array $tabs
@param String $tabValue
@return int
Returns the position of the Tab you want to be selected .