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];
			
		}
		
	}
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];
			
		}
		
	}
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 ] ; } }
Set a class resource from the resource object
@param string $name Resource name
@param object $resource Resource object
@return void
Set a class resource from the resource object