Spade

Mini Shell

Directory:~$ /home/lmsyaran/www/administrator/components/com_rsticketspro/views/crons/
Upload File

[Home] [System Details] [Kill Me]
Current File:~$ /home/lmsyaran/www/administrator/components/com_rsticketspro/views/crons/view.html.php

<?php
/**
* @version 2.0.0
* @package RSTickets! Pro 2.0.0
* @copyright (C) 2010 www.rsjoomla.com
* @license GPL, http://www.gnu.org/licenses/gpl-2.0.html
*/

defined('_JEXEC') or die('Restricted access');

class RsticketsproViewCrons extends JViewLegacy
{
	protected $items;
	protected $pagination;
	protected $state;
	
	public function display($tpl = null)
	{
		$this->addToolbar();
		
		$this->items 		 = $this->get('Items');
		$this->pagination 	 = $this->get('Pagination');
		$this->state 		 = $this->get('State');
		$this->filterForm    = $this->get('FilterForm');
		$this->activeFilters = $this->get('ActiveFilters');
	
		parent::display($tpl);
	}
	
	protected function addToolbar()
	{
		// set title
		JToolbarHelper::title('RSTickets! Pro',
'rsticketspro');

		RSTicketsProToolbarHelper::addToolbar('crons');
		
		JToolbarHelper::addNew('cron.add');
		JToolbarHelper::editList('cron.edit');
		JToolbarHelper::divider();
		JToolbarHelper::publish('crons.publish');
		JToolbarHelper::unpublish('crons.unpublish');
		JToolbarHelper::deleteList('RST_CONFIRM_DELETE',
'crons.delete');
	}
}