<?php
/**
* @version 1.4.0
* @package RSform!Pro 1.4.0
* @copyright (C) 2007-2013 www.rsjoomla.com
* @license GPL, http://www.gnu.org/copyleft/gpl.html
*/

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

jimport('joomla.application.component.model');

class RSFormModelRSForm extends JModelLegacy
{
	var $params;
	
	function __construct()
	{
		parent::__construct();
		
		$app 			= JFactory::getApplication();
		$this->params 	= $app->getParams('com_rsform');
	}

	function getFormId()
	{
		$formId = JRequest::getInt('formId');
		return $formId ? $formId : $this->params->get('formId');
	}
	
	function getParams()
	{
		return $this->params;
	}
}