Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class SpecEnergyStar extends SpecSelectYesNo
- {
- protected $name = 'Energy Star';
- protected $filter = array(SpecFilter::_LABELWRITER_, SpecFilter::_DOTMATRIX_);
- public function __construct($key = false, $index = 1, $value1key = false)
- {
- $this->category = SpecCategory::_GENERAL_;
- parent::__construct($key, $index, $value1key);
- }
- public function getOrder(Product $product)
- {
- if ($product->isLabelWriter()) return 560;
- if ($product->isDotMatrixPrinter()) return 1150;
- return parent::getOrder($product);
- }
- public function getTraffic(Product $product)
- {
- if ( $product->isDotMatrixPrinter() ) return self::TRAFFIC_RED;
- return parent::getTraffic($product);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement