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