25 $this->_oTagSet =
oxNew(
'oxTagSet');
35 $this->
setId($sArticleId);
45 return $this->
getId();
65 public function load($sArticleId)
70 $sQ =
"select oxtags from {$sViewName} where oxid = " . $oDb->quote($sArticleId);
74 $aTags = explode($this->
get()->getSeparator(), $oDb->getOne($sQ));
75 foreach ($aTags as $sTag) {
76 $oTag =
oxNew(
"oxtag");
77 $oTag->set($sTag,
false);
78 $oTag->removeUnderscores();
82 return $this->_isLoaded =
true;
94 if ($sArticleId === null && ($sArticleId = $this->
getArticleId()) === null) {
98 return $this->
load($sArticleId);
111 $oTagSet = $this->
get();
112 foreach ($oTagSet as $oTag) {
113 $oTag->addUnderscores();
118 $sTable = getLangTableName(
'oxartextends', $this->
getLanguage());
121 $sQ =
"insert into {$sTable} (oxid, oxtags$sLangSuffix) value (" . $oDb->quote($this->
getArticleId()) .
", '{$sTags}')
122 on duplicate key update oxtags$sLangSuffix = '{$sTags}'";
124 if ($oDb->execute($sQ)) {
141 public function set($sTags)
143 return $this->_oTagSet->set($sTags);
151 public function get()
163 return $this->_oTagSet->get();
175 return $this->_oTagSet->addTag($mTag);
189 return $sStdTagLink .
"cl=details&anid=" . $this->
getId() .
"&listtype=tag&searchtag=" . rawurlencode($sTag);
202 if (isset($aProducts) && $aTags = $aProducts[$this->
getArticleId()]) {
203 if ($aTags[$sTagTitle] == 1) {
226 $oTagList =
oxNew(
"oxTagList");
228 $oTagCloud =
oxNew(
"oxTagCloud");
229 $oTagCloud->setTagList($oTagList);
230 $oTagCloud->resetCache();