BoxNewSort.php
843 Bytes
<?php
/**
* BoxSort helper
*
* @uses viewHelper Zend_View_Helper
*/
class Web_View_Helper_BoxNewSort extends Zend_View_Helper_Abstract {
/**
* @var Zend_View_Interface
*/
public $view;
/**
*
*/
public function boxNewSort($gender=0, array $sortData) {
// -none -act
$this->view->yh_genderClass_all = ($gender == 0) ? '-act' : '';
$this->view->yh_genderClass_boy = ($gender == 1) ? '-act' : '';
$this->view->yh_genderClass_girl = ($gender == 2) ? '-act' : '';
$this->view->boxProductSort = $product_sort = $sortData;
return $this->view->render('box/newSort.phtml');
}
/**
* Sets the view field
* @param $view Zend_View_Interface
*/
public function setView(Zend_View_Interface $view) {
$this->view = $view;
}
}