Файловый менеджер - Редактировать - /var/www/iplanru/data/www/i-plan.ru/components/com_pay/models/discounts.php
Назад
<?php // No direct access defined( '_JEXEC' ) or die; /** * Model to see the current entries * @author kirdinyuri */ class PayModelDiscounts 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( '#__pay_discounts' )->order('id desc'); return $query; } }
| ver. 1.4 |
Github
|
.
| PHP 5.4.45-1~dotdeb+6.1 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка