source/Core/SeoEncoder.php
public function getMetaData($sObjectId, $sMetaType, $iShopId = null, $iLang = null)
    {
        $oDb = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();

        $iShopId = (!isset($iShopId)) ? \OxidEsales\Eshop\Core\Registry::getConfig()->getShopId() : $iShopId;
        $iLang = (!isset($iLang)) ? \OxidEsales\Eshop\Core\Registry::getLang()->getObjectTplLanguage() : ((int) $iLang);

        return $oDb->getOne("select {$sMetaType} from oxobject2seodata where oxobjectid = " . $oDb->quote($sObjectId) . " and oxshopid = " . $oDb->quote($iShopId) . " and oxlang = '{$iLang}'");
    }
public function getMetaData($sObjectId, $sMetaType, $iShopId = null, $iLang = null)
    {
        $oDb = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();

        $iShopId = (!isset($iShopId)) ? \OxidEsales\Eshop\Core\Registry::getConfig()->getShopId() : $iShopId;
        $iLang = (!isset($iLang)) ? \OxidEsales\Eshop\Core\Registry::getLang()->getObjectTplLanguage() : ((int) $iLang);

        return $oDb->getOne("select {$sMetaType} from oxobject2seodata where oxobjectid = " . $oDb->quote($sObjectId) . " and oxshopid = " . $oDb->quote($iShopId) . " and oxlang = '{$iLang}'");
    }
public function getMetaData ( $ sObjectId , $ sMetaType , $ iShopId = null , $ iLang = null ) { $ oDb = \ OxidEsales \ Eshop \ Core \ DatabaseProvider :: getDb ( ) ; $ iShopId = ( ! isset ( $ iShopId ) ) ? \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getShopId ( ) : $ iShopId ; $ iLang = ( ! isset ( $ iLang ) ) ? \ OxidEsales \ Eshop \ Core \ Registry :: getLang ( ) -> getObjectTplLanguage ( ) : ( ( int ) $ iLang ) ; return $ oDb -> getOne ( "select {$sMetaType} from oxobject2seodata where oxobjectid = " . $ oDb -> quote ( $ sObjectId ) . " and oxshopid = " . $ oDb -> quote ( $ iShopId ) . " and oxlang = '{$iLang}'" ) ; }
Returns meta information for preferred object

@param string $sObjectId information object id
@param string $sMetaType metadata type - "oxkeywords", "oxdescription"
@param int    $iShopId   active shop id [optional]
@param int    $iLang     active language [optional]

@return string
Returns meta information for preferred object