BoxGetOneAds.php 758 Bytes
<?php

/**
 *
 * @author liuziyang
 * @version 
 */

/**
 * BoxDefault helper
 *
 * @uses viewHelper Zend_View_Helper
 */
class Web_View_Helper_BoxGetOneAds extends Zend_View_Helper_Abstract {

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

    /**
     * 
     */
    public function BoxGetOneAds($asdId ,$product_sort_id = 0) {
        if (empty($asdId)) {
            return null;
        }
        $this->view->ads_arr = QINAds_Models_Client::getAdsByPosition($asdId,$product_sort_id);
        return $this->view->render('box/BoxGetOneAds.phtml');
    }

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

}