BoxBrowse.php 735 Bytes
<?php

/**
 *
 * @author denisdou
 * @version 
 */

/**
 * BoxBrand helper
 *
 * @uses viewHelper Zend_View_Helper
 */
class Web_View_Helper_BoxBrowse extends Zend_View_Helper_Abstract {

    /**
     * @var Zend_View_Interface 
     */
    public $view;

    /**
     * 
     */
    public function BoxBrowse($uid, $product_id, $limit = 10) 
    {
    	$ip = '';
        $this->view->ids = array_keys(QModels_Passport_Browsing_Client::getUserBrowseByLimit($ip, $limit, $product_id, $uid));
        return $this->view->render('box/BoxBrowse.phtml');
    }

    /**
     * Sets the view field 
     * @param $view Zend_View_Interface
     */
    public function setView(Zend_View_Interface $view) {
        $this->view = $view;
    }

}