43 $this->_aViewData[
"menustructure"] = $this->
getNavigation()->getDomXml()->documentElement->childNodes;
44 $this->_aViewData[
"articleListTable"] = getViewName(
'oxarticles');
46 return "list_review.tpl";
58 $sArtTable = getViewName(
'oxarticles', $this->_iEditLang);
60 $sQ =
"select oxreviews.oxid, oxreviews.oxcreate, oxreviews.oxtext, oxreviews.oxobjectid, {$sArtTable}.oxparentid, {$sArtTable}.oxtitle as oxtitle, {$sArtTable}.oxvarselect as oxvarselect, oxparentarticles.oxtitle as parenttitle, ";
61 $sQ .=
"concat( {$sArtTable}.oxtitle, if(isnull(oxparentarticles.oxtitle), '', oxparentarticles.oxtitle), {$sArtTable}.oxvarselect) as arttitle from oxreviews ";
62 $sQ .=
"left join $sArtTable as {$sArtTable} on {$sArtTable}.oxid=oxreviews.oxobjectid and 'oxarticle' = oxreviews.oxtype ";
63 $sQ .=
"left join $sArtTable as oxparentarticles on oxparentarticles.oxid = {$sArtTable}.oxparentid ";
64 $sQ .=
"where 1 and oxreviews.oxlang = '{$this->_iEditLang}' ";
68 $sStr =
"/\s+and\s+" . $sArtTable .
"\.oxparentid\s*=\s*''/";
69 $sQ =
getStr()->preg_replace($sStr,
" ", $sQ);
71 return " $sQ and {$sArtTable}.oxid is not null ";
86 $sArtTable = getViewName(
'oxarticles', $this->_iEditLang);
87 $sArtTitleField =
"{$sArtTable}.oxtitle";
90 if ($this->_aWhere[$sArtTitleField]) {
91 $sSqlForTitle =
" (CONCAT( {$sArtTable}.oxtitle, if(isnull(oxparentarticles.oxtitle), '', oxparentarticles.oxtitle), {$sArtTable}.oxvarselect)) ";
92 $sSql =
getStr()->preg_replace(
"/{$sArtTable}\.oxtitle\s+like/",
"$sSqlForTitle like", $sSql);