BoxNavigation.php 885 Bytes
<?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;
	}
}