Пример #1
0
 /**
  * Create new instance.
  */
 public function __construct()
 {
     parent::__construct('prfilter', Runtime::getContainer()->get('translator')->trans('Price Range'));
     $this->ranges = array();
     if (!empty($this->filterValues) && is_array($this->filterValues)) {
         // values are in the form of from-to
         foreach ($this->filterValues as $value) {
             $range = explode('-', $value);
             if (!empty($value)) {
                 $this->ranges[$value] = $range;
             }
         }
     }
 }
Пример #2
0
 /**
  * Create new instance.
  */
 public function __construct()
 {
     parent::__construct('mfilter', Runtime::getContainer()->get('translator')->trans('Manufacturer'), Runtime::getContainer()->get('request')->query->get('mfilter'));
 }
Пример #3
0
 /**
  * Create new instance.
  */
 public function __construct()
 {
     parent::__construct('cfilter', Runtime::getContainer()->get('translator')->trans('Category'), Runtime::getContainer()->get('request')->query->get('cfilter'));
     $this->productIds = null;
 }
Пример #4
0
 /**
  * Create new instance.
  */
 public function __construct()
 {
     parent::__construct('afilter', Runtime::getContainer()->get('translator')->trans('First character of Name'));
 }
Пример #5
0
 /**
  * Create new instance.
  */
 public function __construct()
 {
     parent::__construct('ofilter', Runtime::getContainer()->get('translator')->trans('Order Status'), Runtime::getContainer()->get('request')->query->get('ofilter'));
 }