public function setResourceObj ($name, &$resource)
	{
		
		// Set the resource
		
		$this->resources[$name]	=& $resource;
		
		// If the object variable exists 
		
		if (isset ($this->$name))
		{

			// Assign to object variable

			$this->$name	=& $this->resources[$name];
			
		}
		
	}