Your IP : 216.73.216.11


Current Path : /home/digilove/public_html/components/com_marketplace/controllers/
Upload File :
Current File : /home/digilove/public_html/components/com_marketplace/controllers/mypayments.php

<?php
/**
 * Marketplace - Component Marketplace 
 * ******************************************************************
 *
 * PHP version 7.0
 *
 * @category   Component
 * @package    Joomla
 * @author     WebKul software private limited <support@webkul.com>
 * @copyright  2010 WebKul software private limited
 * @license    http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
 * @version    GIT:5.2
 * @filesource http://store.webkul.com
 * @link       Technical Support:  webkul.uvdesk.com
 * ******************************************************************
 */
// no direct access
defined('_JEXEC') or die('Restricted access');

jimport('joomla.application.component.controller');
jimport('joomla.filesystem.file');
/**
 * MarketplaceControllerMypayments class
 * 
 * @category Component
 * @package  Joomla
 * @author   WebKul software private limited <support@webkul.com>
 * @license  http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
 * @link     Technical Support:  webkul.uvdesk.com
 */
class MarketplaceControllerMypayments extends JControllerLegacy
{
    /**
     * Display function
     *
     * @param boolean $cachable  var
     * @param array   $urlparams var
     * 
     * @return void
     */
    function display($cachable = false, $urlparams = array())
    {
        parent::display();
    }
    /**
     * GetMpPayment function
     *
     * @return void
     */
    function getMpPayment()
    {
        $jinput =JFactory::getApplication()->input;
        $startdate = $jinput->get('startdate');
        $limit_start=$jinput->get('startlimit');
        $enddate = $jinput->get('enddate');
        $lazy_limit = $jinput->get('lmt');
        $wkTotal=$jinput->get('wkTotal');
        $id = $jinput->get('id');
        $wk_initial=$jinput->get('wk_initial');
        $model=$this->getModel('mypayments');
        $result = $model->getMpPayment(
            $id,
            $startdate,
            $enddate,
            $lazy_limit,
            $limit_start,
            1
        );
        echo json_encode($result);
        JFactory::getApplication()->close();
    }
}