Changeset View
Changeset View
Standalone View
Standalone View
core/kernel/db/cat_event_handler.php
Show First 20 Lines • Show All 1104 Lines • ▼ Show 20 Line(s) | |||||
*/ | */ | ||||
function OnSimpleSearch($event) | function OnSimpleSearch($event) | ||||
{ | { | ||||
$event->redirect = false; | $event->redirect = false; | ||||
$search_table = TABLE_PREFIX.'ses_'.$this->Application->GetSID().'_'.TABLE_PREFIX.'Search'; | $search_table = TABLE_PREFIX.'ses_'.$this->Application->GetSID().'_'.TABLE_PREFIX.'Search'; | ||||
$keywords = $this->Application->unescapeRequestVariable(trim($this->Application->GetVar('keywords'))); | $keywords = $this->Application->unescapeRequestVariable(trim($this->Application->GetVar('keywords'))); | ||||
$query_object = $this->Application->recallObject('HTTPQuery'); | $query_object = $this->Application->recallObject('kHTTPQuery'); | ||||
/* @var $query_object kHTTPQuery */ | /* @var $query_object kHTTPQuery */ | ||||
$sql = 'SHOW TABLES LIKE "'.$search_table.'"'; | $sql = 'SHOW TABLES LIKE "'.$search_table.'"'; | ||||
if(!isset($query_object->Get['keywords']) && | if(!isset($query_object->Get['keywords']) && | ||||
!isset($query_object->Post['keywords']) && | !isset($query_object->Post['keywords']) && | ||||
$this->Conn->Query($sql)) | $this->Conn->Query($sql)) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 296 Lines • ▼ Show 20 Line(s) | |||||
/** | /** | ||||
* Enter description here... | * Enter description here... | ||||
* | * | ||||
* @param kEvent $event | * @param kEvent $event | ||||
* @todo Change all hardcoded Products table & In-Commerce module usage to dynamic usage from item config !!! | * @todo Change all hardcoded Products table & In-Commerce module usage to dynamic usage from item config !!! | ||||
*/ | */ | ||||
function OnAdvancedSearch($event) | function OnAdvancedSearch($event) | ||||
{ | { | ||||
$query_object = $this->Application->recallObject('HTTPQuery'); | $query_object = $this->Application->recallObject('kHTTPQuery'); | ||||
/* @var $query_object kHTTPQuery */ | /* @var $query_object kHTTPQuery */ | ||||
if ( !isset($query_object->Post['andor']) ) { | if ( !isset($query_object->Post['andor']) ) { | ||||
// used when navigating by pages or changing sorting in search results | // used when navigating by pages or changing sorting in search results | ||||
return; | return; | ||||
} | } | ||||
$this->Application->RemoveVar('keywords'); | $this->Application->RemoveVar('keywords'); | ||||
▲ Show 20 Lines • Show All 1667 Lines • Show Last 20 Lines |