Some files renamed to fit the coding style

This commit is contained in:
David Mudrak
2010-01-04 17:35:12 +00:00
parent 4eab2e7fbb
commit 725d615401
4 changed files with 49 additions and 5 deletions
+4 -4
View File
@@ -70,11 +70,11 @@ $selfurl = "{$CFG->wwwroot}/mod/workshop/editgradingform.php?id={$cm->id}";
$dimensions = $DB->get_records('workshop_forms_accumulative', array('workshopid' => $workshop->id), 'sort');
// load the form to edit the grading strategy dimensions
$strategylib = dirname(__FILE__) . '/grading/' . $workshop->strategy . '/edit_' . $workshop->strategy . '_strategy_form.php';
if (file_exists($strategylib)) {
require_once($strategylib);
$strategyform = dirname(__FILE__) . '/grading/' . $workshop->strategy . '/gradingform.php';
if (file_exists($strategyform)) {
require_once($strategyform);
} else {
print_error('errloadingstrategylib', 'workshop', $returnurl);
print_error('errloadingstrategyform', 'workshop', $returnurl);
}
$classname = 'workshop_edit_' . $workshop->strategy . '_strategy_form';
$mform = new $classname($selfurl, true, count($dimensions));
@@ -28,7 +28,7 @@ if (!defined('MOODLE_INTERNAL')) {
die('Direct access to this script is forbidden.'); // It must be included from a Moodle page
}
require_once(dirname(dirname(__FILE__)).'/edit_strategy_form.php'); // parent class definition
require_once(dirname(dirname(__FILE__)).'/gradingform.php'); // parent class definition
/**
+44
View File
@@ -0,0 +1,44 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* This file defines a base class for all grading strategy editing forms.
*
* @package mod-workshop
* @copyright 2009 David Mudrak <[email protected]>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
if (!defined('MOODLE_INTERNAL')) {
die('Direct access to this script is forbidden.'); // It must be included from a Moodle page
}
/**
* Strategy interface defines all methods that strategy subplugins has to implemens
*/
interface workshop_strategy_interface {
}
/**
* Base class for grading strategy logic.
*/
class workshop_strategy implements workshop_strategy_interface {
}