21 $oObject =
oxNew($sType);
22 if ($oObject->load($this->getEditObjectId())) {
23 $oOtherLang = $oObject->getAvailableInLangs();
24 if (!isset($oOtherLang[$iLang])) {
27 $this->_aViewData[
'edit'] = $oObject;
34 foreach ($aLangs as $sLangId => $sLanguage) {
35 $oLang =
new stdClass();
36 $oLang->sLangDesc = $sLanguage;
37 $oLang->selected = ($sLangId == $iLang);
38 $this->_aViewData[
'otherlang'][$sLangId] = clone $oLang;
41 return 'object_seo.tpl';
52 $iShopId = $this->
getConfig()->getShopId();
56 if (!isset($aSeoData[
'oxfixed'])) {
57 $aSeoData[
'oxfixed'] = 0;
64 $oEncoder->markAsExpired($sOxid, $iShopId, 1, $iLang, $sParams);
67 $oEncoder->addSeoEntry(
68 $sOxid, $iShopId, $iLang, $this->
_getStdUrl($sOxid),
85 if (isset($aSeoData[
'oxparams'])) {
86 if (preg_match(
'/([a-z]*#)?(?<objectseo>[a-z0-9]+)(#[0-9])?/i', $aSeoData[
'oxparams'], $aMatches)) {
87 $sQuotedObjectSeoId =
oxDb::getDb()->quote($aMatches[
'objectseo']);
88 $sParams =
"oxparams = {$sQuotedObjectSeoId}";
124 $iShopId = $this->
getConfig()->getShopId();
126 $sQ =
"select oxfixed from oxseo where
128 oxseo.oxshopid = '{$iShopId}' and oxseo.oxlang = {$iLang} and oxparams = '' ";
130 return (
bool)
oxDb::getDb()->getOne($sQ,
false,
false);
150 $oObject =
oxNew($sType);
151 if ($oObject->load($sOxid)) {
152 return $oObject->getBaseStdLink($this->
getEditLang(),
true,
false);