public static function newResources ($group, $resources, $setDefault = TRUE, $defaultOverride = FALSE)
	{
		
		// Add each resource
		
		foreach ($resources as $resource)
		{
			
			// Default settings
			
			$select		= FALSE;
			$name		= FALSE;
			$override	= $defaultOverride;
			
			// The resource is an object so add it as-is
			
			if (is_object ($resource))
			{
				$obj	= $resource;
			}
			
			// Else the resource is not an object and is not an array with its 1st item being an object
			
			elseif (!is_array ($resource) || !$resource || !is_object ($resource[0]))
			{
				throw new Exception ('Invalid resource to add to group ' . $group);
			}
			
			// Else the resource is an array so lets work out any specific settings
			
			else
			{
				foreach ($resource as $arg => $val)
				{
					
					switch ($arg)
					{
						
						// Resource object
						
						case 0:
							$obj	= $val; break;
						
						// Resource name
						
						case 1:
							$name	= $val; break;
						
						// Default resource
						
						case 2:
							$select	= $val; break;
						
						// Override
						
						case 3:
							$override	= $val; break;
							
					}
					
				}
				
			}
			
			// Auto generate name if none is specified
			
			if (!$name)
			{
				$name	= $group . '-' . (self::countResourceGroup ($group) +1);
			}
			
			// Add the resource to the group
			
			self::newResource (array ($group, $name), $obj, $select, $override, $setDefault);
			
		}
		
	}