Пример #1
0
 /**
  * returns the SORT part of the final selection of products.
  * @return String
  */
 protected function currentSortSQL()
 {
     if (isset($_GET['sortby'])) {
         $sortKey = Convert::raw2sqL($_GET['sortby']);
     } else {
         $sortKey = $this->MyDefaultSortOrder();
     }
     $sort = $this->getSortOptionSQL($sortKey);
     return $sort;
 }
 /**
  * returns the filter SQL, based on the $_GET or default entry.
  * The standard filter excludes the product group filter.
  * The default would be something like "ShowInSearch = 1"
  * @return String
  */
 protected function getStandardFilter()
 {
     if (isset($_GET['filterfor'])) {
         $filterKey = Convert::raw2sqL($_GET['filterfor']);
     } else {
         $filterKey = $this->MyDefaultFilter();
     }
     $filter = $this->getFilterOptionSQL($filterKey);
     return $filter;
 }