source/Application/Controller/Admin/ArticleMain.php
protected function _formJumpList($oArticle, $oParentArticle)
    {
        $aJumpList = [];
        //fetching parent article variants
        $sOxIdField = 'oxarticles__oxid';
        if (isset($oParentArticle)) {
            $aJumpList[] = [$oParentArticle->$sOxIdField->value, $this->_getTitle($oParentArticle)];
            $sEditLanguageParameter = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter("editlanguage");
            $oParentVariants = $oParentArticle->getAdminVariants($sEditLanguageParameter);
            if ($oParentVariants->count()) {
                foreach ($oParentVariants as $oVar) {
                    $aJumpList[] = [$oVar->$sOxIdField->value, " - " . $this->_getTitle($oVar)];
                    if ($oVar->$sOxIdField->value == $oArticle->$sOxIdField->value) {
                        $oVariants = $oArticle->getAdminVariants($sEditLanguageParameter);
                        if ($oVariants->count()) {
                            foreach ($oVariants as $oVVar) {
                                $aJumpList[] = [$oVVar->$sOxIdField->value, " -- " . $this->_getTitle($oVVar)];
                            }
                        }
                    }
                }
            }
        } else {
            $aJumpList[] = [$oArticle->$sOxIdField->value, $this->_getTitle($oArticle)];
            //fetching this article variants data
            $oVariants = $oArticle->getAdminVariants(\OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter("editlanguage"));
            if ($oVariants && $oVariants->count()) {
                foreach ($oVariants as $oVar) {
                    $aJumpList[] = [$oVar->$sOxIdField->value, " - " . $this->_getTitle($oVar)];
                }
            }
        }
        if (count($aJumpList) > 1) {
            $this->_aViewData["thisvariantlist"] = $aJumpList;
        }
    }
protected function _formJumpList($oArticle, $oParentArticle)
    {
        $aJumpList = [];
        //fetching parent article variants
        $sOxIdField = 'oxarticles__oxid';
        if (isset($oParentArticle)) {
            $aJumpList[] = [$oParentArticle->$sOxIdField->value, $this->_getTitle($oParentArticle)];
            $sEditLanguageParameter = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter("editlanguage");
            $oParentVariants = $oParentArticle->getAdminVariants($sEditLanguageParameter);
            if ($oParentVariants->count()) {
                foreach ($oParentVariants as $oVar) {
                    $aJumpList[] = [$oVar->$sOxIdField->value, " - " . $this->_getTitle($oVar)];
                    if ($oVar->$sOxIdField->value == $oArticle->$sOxIdField->value) {
                        $oVariants = $oArticle->getAdminVariants($sEditLanguageParameter);
                        if ($oVariants->count()) {
                            foreach ($oVariants as $oVVar) {
                                $aJumpList[] = [$oVVar->$sOxIdField->value, " -- " . $this->_getTitle($oVVar)];
                            }
                        }
                    }
                }
            }
        } else {
            $aJumpList[] = [$oArticle->$sOxIdField->value, $this->_getTitle($oArticle)];
            //fetching this article variants data
            $oVariants = $oArticle->getAdminVariants(\OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter("editlanguage"));
            if ($oVariants && $oVariants->count()) {
                foreach ($oVariants as $oVar) {
                    $aJumpList[] = [$oVar->$sOxIdField->value, " - " . $this->_getTitle($oVar)];
                }
            }
        }
        if (count($aJumpList) > 1) {
            $this->_aViewData["thisvariantlist"] = $aJumpList;
        }
    }
protected function _formJumpList ( $ oArticle , $ oParentArticle ) { $ aJumpList = [ ] ; //fetching parent article variants $ sOxIdField = 'oxarticles__oxid' ; if ( isset ( $ oParentArticle ) ) { $ aJumpList [ ] = [ $ oParentArticle -> $ sOxIdField -> value , $ this -> _getTitle ( $ oParentArticle ) ] ; $ sEditLanguageParameter = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getRequestParameter ( "editlanguage" ) ; $ oParentVariants = $ oParentArticle -> getAdminVariants ( $ sEditLanguageParameter ) ; if ( $ oParentVariants -> count ( ) ) { foreach ( $ oParentVariants as $ oVar ) { $ aJumpList [ ] = [ $ oVar -> $ sOxIdField -> value , " - " . $ this -> _getTitle ( $ oVar ) ] ; if ( $ oVar -> $ sOxIdField -> value == $ oArticle -> $ sOxIdField -> value ) { $ oVariants = $ oArticle -> getAdminVariants ( $ sEditLanguageParameter ) ; if ( $ oVariants -> count ( ) ) { foreach ( $ oVariants as $ oVVar ) { $ aJumpList [ ] = [ $ oVVar -> $ sOxIdField -> value , " -- " . $ this -> _getTitle ( $ oVVar ) ] ; } } } } } } else { $ aJumpList [ ] = [ $ oArticle -> $ sOxIdField -> value , $ this -> _getTitle ( $ oArticle ) ] ; //fetching this article variants data $ oVariants = $ oArticle -> getAdminVariants ( \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getRequestParameter ( "editlanguage" ) ) ; if ( $ oVariants && $ oVariants -> count ( ) ) { foreach ( $ oVariants as $ oVar ) { $ aJumpList [ ] = [ $ oVar -> $ sOxIdField -> value , " - " . $ this -> _getTitle ( $ oVar ) ] ; } } } if ( count ( $ aJumpList ) > 1 ) { $ this -> _aViewData [ "thisvariantlist" ] = $ aJumpList ; } }
Function forms article variants jump list.

@param object $oArticle       article object
@param object $oParentArticle article parent object
Function forms article variants jump list .