| Current Path : /var/www/iplanru/data/www/i-plan.ru/components/com_pay/models/ |
| Current File : /var/www/iplanru/data/www/i-plan.ru/components/com_pay/models/payments.php |
<?php
// No direct access
defined( '_JEXEC' ) or die;
/**
* Model to see the current entries
* @author kirdinyuri
*/
class PayModelPayments extends JModelList
{
/**
* @var JRegistry
*/
private $params;
/**
* @var JInput|null
*/
private $input;
/**
* Class constructor
* @param Array $config
*/
public function __construct( $config = array() )
{
parent::__construct( $config );
$this->params = JComponentHelper::getParams( 'com_pay' );
$this->input = & JFactory::getApplication()->input;
}
/**
* Method for receiving a request to view records
* @return Object Query
*/
protected function getListQuery()
{
$this->setState( 'list.start', $this->input->get( 'start' ) );
$this->setState( 'list.limit', $this->params->get( 'limit', 10 ) );
$query = $this->getDbo()->getQuery( true );
$query->select( '*' )->from( '#__payment' )->order('id desc');
return $query;
}
}