Your IP : 216.73.216.240


Current Path : /home/juvelize/www/administrator/components/com_myrssreader/views/rss/
Upload File :
Current File : /home/juvelize/www/administrator/components/com_myrssreader/views/rss/view.html.php

<?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' );

class MyRSSReaderViewRSS extends JView
{
    function display($tpl = null)
    {
        $edit  	   		= JRequest::getCmd('edit');
        $rss_table 		=& JTable::getInstance('RSS', 'Table');
		$category_table =& JTable::getInstance('Category', 'Table');
		
		$category_list = $category_table->getCategoryList();
        
        $rss_operation = JText::_('COM_MYRSSREADER_NEW');
        
        if($edit == true)
        {
            $cid = JRequest::getVar('cid', array(0), '', 'array');
            $id = (int) @$cid[0];
            $rss_details = $rss_table->getRSSDetails($id);
            $rss_operation = JText::_('COM_MYRSSREADER_EDIT');
        }
		else
		{
			$rss_details->id = '';
			$rss_details->title = ''; 
			$rss_details->web_url = '';
			$rss_details->rss_url = ''; 
			$rss_details->published = 0;
			$rss_details->category_id_list = array('0');
		}
        
        JRequest::setVar('hidemainmenu', 1);
        
        JToolBarHelper::title(JText::_('COM_MYRSSREADER_RSS') .': ['.$rss_operation.']', 'generic.png');        
        JToolBarHelper::save('rss_save');
        JToolBarHelper::cancel();
        
        $this->assignRef('rss_details', $rss_details);
		$this->assignRef('category_list', $category_list);
              
        parent::display($tpl);
    }    
}

?>