Your IP : 216.73.216.240
<?php
/**
* @package My RSS Reader
* @copyright Copyright (C) 2010 FalsinSoft. All rights reserved.
* @license GNU/GPL
* @website http://falsinsoft-joomla.blogspot.com
* @email falsinsoft@gmail.com
*
*/
defined('_JEXEC') or die();
jimport('joomla.application.component.view');
jimport('joomla.html.pagination');
class MyRSSReaderViewCategoryList extends JView
{
function display($tpl = null)
{
$category_table =& JTable::getInstance('Category', 'Table');
$model =& JModel::getInstance('MyRSSReader', 'Model');
$limitstart = JRequest::getCmd('limitstart', 0);
$limit = JRequest::getCmd('limit', 10);
$category_number = $category_table->getCategoryNumber();
if($limit == 0) $limit = $category_number;
$category_list = $category_table->getCategoryList($limitstart, $limit);
JToolBarHelper::title('My RSS Reader ['.JText::_('COM_MYRSSREADER_CATEGORIES').']', 'generic.png');
JToolBarHelper::deleteListX(JText::_('COM_MYRSSREADER_CATEGORYLIST_DELETEWARNING'), 'category_delete');
JToolBarHelper::editListX('category_edit');
JToolBarHelper::addNewX('category_add');
$model->SetToolbarParams();
$pagination = new JPagination($category_number, $limitstart, $limit);
$this->assignRef('category_list', $category_list);
$this->assignRef('pagination', $pagination);
$this->assignRef('model', $model);
parent::display($tpl);
}
}
?>