Example #1
0
 /**
  * Define and set widget attributes; initialize widget
  *
  * @param array $params Widget params OPTIONAL
  *
  * @return void
  */
 public function __construct(array $params = array())
 {
     $this->sortByModes += $this->getSortOptions();
     parent::__construct($params);
 }
Example #2
0
 /**
  * Define and set widget attributes; initialize widget
  *
  * @param array $params Widget params OPTIONAL
  *
  * @return void
  */
 public function __construct(array $params = array())
 {
     $this->sortByModes += array(self::SORT_BY_MODE_PRICE => 'Price', self::SORT_BY_MODE_NAME => 'Name', self::SORT_BY_MODE_SKU => 'SKU', self::SORT_BY_MODE_AMOUNT => 'Amount');
     parent::__construct($params);
 }
Example #3
0
 /**
  * Define and set widget attributes; initialize widget
  *
  * @param array $params Widget params OPTIONAL
  *
  * @return void
  */
 public function __construct(array $params = array())
 {
     $this->sortByModes += array(self::SORT_BY_MODE_ID => '# Id');
     parent::__construct($params);
 }