src/Factory.php
public static function &getParams($jname, $reset = false)
	{
		static $instances;
		if (!isset($instances)) {
			$instances = array();
		}

		try {
			//only create a new parameter instance if it has not been created before
			if (!isset($instances[$jname]) || $reset) {
				$db = self::getDBO();

				$query = $db->getQuery(true)
					->select('params')
					->from('#__jfusion')
					->where('name = ' . $db->quote($jname));

				$db->setQuery($query);
				$params = $db->loadResult();
				$instances[$jname] = new Registry($params);
			}
			return $instances[$jname];
		} catch (Exception $e) {
			return new Registry();
		}
	}
public static function &getParams($jname, $reset = false)
	{
		static $instances;
		if (!isset($instances)) {
			$instances = array();
		}

		try {
			//only create a new parameter instance if it has not been created before
			if (!isset($instances[$jname]) || $reset) {
				$db = self::getDBO();

				$query = $db->getQuery(true)
					->select('params')
					->from('#__jfusion')
					->where('name = ' . $db->quote($jname));

				$db->setQuery($query);
				$params = $db->loadResult();
				$instances[$jname] = new Registry($params);
			}
			return $instances[$jname];
		} catch (Exception $e) {
			return new Registry();
		}
	}
public static function & getParams ( $ jname , $ reset = false ) { static $ instances ; if ( ! isset ( $ instances ) ) { $ instances = array ( ) ; } try { //only create a new parameter instance if it has not been created before if ( ! isset ( $ instances [ $ jname ] ) || $ reset ) { $ db = self :: getDBO ( ) ; $ query = $ db -> getQuery ( true ) -> select ( 'params' ) -> from ( '#__jfusion' ) -> where ( 'name = ' . $ db -> quote ( $ jname ) ) ; $ db -> setQuery ( $ query ) ; $ params = $ db -> loadResult ( ) ; $ instances [ $ jname ] = new Registry ( $ params ) ; } return $ instances [ $ jname ] ; } catch ( Exception $ e ) { return new Registry ( ) ; } }
Gets an Parameter Object for the JFusion Plugin

@param string  $jname name of the JFusion plugin used
@param boolean $reset switch to force a recreate of the instance

@return Registry JParam object for the JFusion plugin
Gets an Parameter Object for the JFusion Plugin