public function params($id)
	{
		$params = '';

		if ($this->app->has('db'))
		{
			$db = $this->app['db'];

			$query = $db->getQuery()
				->select('params')
				->from('#__modules')
				->whereEquals('published', 1);

			// Select module params based on name or ID
			if (is_numeric($id))
			{
				$query->whereEquals('id', (int) $id);
			}
			else
			{
				$query->whereEquals('module', $id);
			}

			$db->setQuery($query->toString());
			$params = $db->loadResult();
		}

		//return params
		return new Registry($params);
	}
public function params($id)
	{
		$params = '';

		if ($this->app->has('db'))
		{
			$db = $this->app['db'];

			$query = $db->getQuery()
				->select('params')
				->from('#__modules')
				->whereEquals('published', 1);

			// Select module params based on name or ID
			if (is_numeric($id))
			{
				$query->whereEquals('id', (int) $id);
			}
			else
			{
				$query->whereEquals('module', $id);
			}

			$db->setQuery($query->toString());
			$params = $db->loadResult();
		}

		//return params
		return new Registry($params);
	}
public function params ( $ id ) { $ params = '' ; if ( $ this -> app -> has ( 'db' ) ) { $ db = $ this -> app [ 'db' ] ; $ query = $ db -> getQuery ( ) -> select ( 'params' ) -> from ( '#__modules' ) -> whereEquals ( 'published' , 1 ) ; // Select module params based on name or ID if ( is_numeric ( $ id ) ) { $ query -> whereEquals ( 'id' , ( int ) $ id ) ; } else { $ query -> whereEquals ( 'module' , $ id ) ; } $ db -> setQuery ( $ query -> toString ( ) ) ; $ params = $ db -> loadResult ( ) ; } //return params return new Registry ( $ params ) ; }
Get the parameters for a module

@param   mixed   $id  Module ID
@return  object  Hubzero\Config\Registry
Get the parameters for a module