BoxNavigation.php
885 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
/**
*
* @author liuziyang
* @version
* BoxNavigation helper
*
* @uses viewHelper Zend_View_Helper
*/
class Zend_View_Helper_BoxNavigation {
/**
* @var Zend_View_Interface
*/
public $view;
/**
*
*/
public function boxNavigation($sort_ids) {
$max_sort_id = $sort_ids['msort'];
$middle_sort_id = $sort_ids['misort'];
$small_sort_id = $sort_ids['sort'];
$this->view->msortNav = $msortNav = QModels_Product_Sort_Client::getOneSort($max_sort_id);
$this->view->misortNav = $misortNav = QModels_Product_Sort_Client::getOneSort($middle_sort_id);
$this->view->sortNav = $sortNav = QModels_Product_Sort_Client::getOneSort($small_sort_id);
return $this->view->render('box/navigation.phtml');
}
/**
* Sets the view field
* @param $view Zend_View_Interface
*/
public function setView(Zend_View_Interface $view) {
$this->view = $view;
}
}