public function setResource ($name, $resource)
	{
		
		// Get the resource
		
		$obj	=& Sonic::getResource ($resource);
		
		if (!$obj)
		{
			return FALSE;
		}
		
		// Set resource object
		
		$this->setResourceObj ($name, $obj);
		
		// Return
		
		return TRUE;
		
	}
public function setResource ($name, $resource)
	{
		
		// Get the resource
		
		$obj	=& Sonic::getResource ($resource);
		
		if (!$obj)
		{
			return FALSE;
		}
		
		// Set resource object
		
		$this->setResourceObj ($name, $obj);
		
		// Return
		
		return TRUE;
		
	}
public function setResource ( $ name , $ resource ) { // Get the resource $ obj = & Sonic :: getResource ( $ resource ) ; if ( ! $ obj ) { return FALSE ; } // Set resource object $ this -> setResourceObj ( $ name , $ obj ) ; // Return return TRUE ; }
Set an internal resource from a framework resource
@param string $name Resource name
@param string|array $resource Framework resource referece
@return boolean
Set an internal resource from a framework resource