Changeset View
Changeset View
Standalone View
Standalone View
modules/in-commerce/units/products/products_tag_processor.php
Show First 20 Lines • Show All 297 Lines • ▼ Show 20 Line(s) | |||||
} | } | ||||
$this->Application->SetVar('p_id', $this->Application->GetVar($this->getPrefixSpecial().'_id')); | $this->Application->SetVar('p_id', $this->Application->GetVar($this->getPrefixSpecial().'_id')); | ||||
return $this->Application->HREF($t, '', $link_params); | return $this->Application->HREF($t, '', $link_params); | ||||
} | } | ||||
function SearchResultsCount($params) | function SearchResultsCount($params) | ||||
{ | { | ||||
$search_results_table = TABLE_PREFIX.'ses_'.$this->Application->GetSID().'_'.TABLE_PREFIX.'Search'; | /** @var kSearchHelper $search_helper */ | ||||
$search_helper = $this->Application->recallObject('SearchHelper'); | |||||
$sql = ' SELECT COUNT(ResourceId) | $sql = ' SELECT COUNT(ResourceId) | ||||
FROM '.$search_results_table.' | FROM ' . $search_helper->getSearchTable() . ' | ||||
WHERE ItemType=11'; | WHERE ItemType=11'; | ||||
return $this->Conn->GetOne($sql); | return $this->Conn->GetOne($sql); | ||||
} | } | ||||
function DetailsLink($params) | function DetailsLink($params) | ||||
{ | { | ||||
$this->Application->SetVar( $this->Prefix.'_id', $this->Application->GetVar($this->getPrefixSpecial().'_id') ); | $this->Application->SetVar( $this->Prefix.'_id', $this->Application->GetVar($this->getPrefixSpecial().'_id') ); | ||||
$ret = $this->Application->HREF('in-commerce/details', '', Array('pass' => 'all,p')); | $ret = $this->Application->HREF('in-commerce/details', '', Array('pass' => 'all,p')); | ||||
return $ret; | return $ret; | ||||
▲ Show 20 Lines • Show All 535 Lines • ▼ Show 20 Line(s) | |||||
$url = $this->Application->GetVar('continue'); | $url = $this->Application->GetVar('continue'); | ||||
if ( isset($params['redirect']) && $params['redirect'] ) { | if ( isset($params['redirect']) && $params['redirect'] ) { | ||||
$this->Application->Redirect('external:' . $url); | $this->Application->Redirect('external:' . $url); | ||||
} | } | ||||
return $url; | return $url; | ||||
} | } | ||||
} | } | ||||
No newline at end of file |