2004-07-28 06:56:59 +00:00
|
|
|
<?php // $Id$
|
|
|
|
// This script prints the setup screen for any resource
|
|
|
|
// It does this by calling the setup method in the appropriate class
|
2003-01-01 13:17:27 +00:00
|
|
|
|
2004-07-25 14:32:05 +00:00
|
|
|
require_once("$CFG->dirroot/mod/resource/lib.php");
|
2004-07-28 06:56:59 +00:00
|
|
|
require_once("$CFG->dirroot/mod/resource/type/$form->type/resource.class.php");
|
2004-07-25 14:32:05 +00:00
|
|
|
|
2004-07-28 06:56:59 +00:00
|
|
|
$resourceclass = "resource_$form->type";
|
|
|
|
$resource = new $resourceclass();
|
2003-01-01 13:17:27 +00:00
|
|
|
|
2004-07-25 14:32:05 +00:00
|
|
|
$resource->setup($form);
|
2002-10-17 14:03:59 +00:00
|
|
|
|
2004-07-25 14:32:05 +00:00
|
|
|
?>
|