source/Application/Controller/Admin/DynamicExportBaseController.php
public function getDefaultCategoryString($oArticle)
    {
        $sLang = \OxidEsales\Eshop\Core\Registry::getLang()->getBaseLanguage();
        $oDB = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();

        $sCatView = getViewName('oxcategories', $sLang);
        $sO2CView = getViewName('oxobject2category', $sLang);

        //selecting category
        $sQ = "select $sCatView.oxtitle from $sO2CView as oxobject2category left join $sCatView on $sCatView.oxid = oxobject2category.oxcatnid ";
        $sQ .= "where oxobject2category.oxobjectid=" . $oDB->quote($oArticle->getId()) . " and $sCatView.oxactive = 1 order by oxobject2category.oxtime ";

        return $oDB->getOne($sQ);
    }
public function getDefaultCategoryString($oArticle)
    {
        $sLang = \OxidEsales\Eshop\Core\Registry::getLang()->getBaseLanguage();
        $oDB = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();

        $sCatView = getViewName('oxcategories', $sLang);
        $sO2CView = getViewName('oxobject2category', $sLang);

        //selecting category
        $sQ = "select $sCatView.oxtitle from $sO2CView as oxobject2category left join $sCatView on $sCatView.oxid = oxobject2category.oxcatnid ";
        $sQ .= "where oxobject2category.oxobjectid=" . $oDB->quote($oArticle->getId()) . " and $sCatView.oxactive = 1 order by oxobject2category.oxtime ";

        return $oDB->getOne($sQ);
    }
public function getDefaultCategoryString ( $ oArticle ) { $ sLang = \ OxidEsales \ Eshop \ Core \ Registry :: getLang ( ) -> getBaseLanguage ( ) ; $ oDB = \ OxidEsales \ Eshop \ Core \ DatabaseProvider :: getDb ( ) ; $ sCatView = getViewName ( 'oxcategories' , $ sLang ) ; $ sO2CView = getViewName ( 'oxobject2category' , $ sLang ) ; //selecting category $ sQ = "select $sCatView.oxtitle from $sO2CView as oxobject2category left join $sCatView on $sCatView.oxid = oxobject2category.oxcatnid " ; $ sQ .= "where oxobject2category.oxobjectid=" . $ oDB -> quote ( $ oArticle -> getId ( ) ) . " and $sCatView.oxactive = 1 order by oxobject2category.oxtime " ; return $ oDB -> getOne ( $ sQ ) ; }
Loads article default category

@param \OxidEsales\Eshop\Application\Model\Article $oArticle Article object

@return record set
Loads article default category