forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-63876 badges: Remove invalid table from badges
- Loading branch information
Damyon Wiese
committed
Mar 29, 2019
1 parent
0920f35
commit e8bfd9b
Showing
18 changed files
with
206 additions
and
183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
// You should have received a copy of the GNU General Public License | ||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>. | ||
/** | ||
* Form competency for editing. | ||
* Form alignment for editing. | ||
* | ||
* @package core | ||
* @subpackage badges | ||
|
@@ -27,13 +27,13 @@ | |
require_once($CFG->libdir . '/badgeslib.php'); | ||
|
||
/** | ||
* Form to edit competency alignment. | ||
* Form to edit alignment. | ||
* | ||
* @copyright 2018 Tung Thai | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later | ||
* @author Tung Thai <[email protected]> | ||
*/ | ||
class competency_alignment_form extends moodleform { | ||
class alignment_form extends moodleform { | ||
|
||
/** | ||
* Defines the form. | ||
|
@@ -68,7 +68,7 @@ public function definition() { | |
$this->add_action_buttons(); | ||
if ($action == 'edit' || $alignmentid) { | ||
$alignment = new stdClass(); | ||
$alignment = $DB->get_record_select('badge_competencies', 'id = ?', array($alignmentid)); | ||
$alignment = $DB->get_record_select('badge_alignment', 'id = ?', array($alignmentid)); | ||
$this->set_data($alignment); | ||
// Freeze all elements if badge is active or locked. | ||
if ($badge->is_active() || $badge->is_locked()) { | ||
|
@@ -91,4 +91,4 @@ public function validation($data, $files) { | |
} | ||
return $errors; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ | |
// along with Moodle. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
/** | ||
* Contains competency class for displaying a badge competency. | ||
* Contains alignment class for displaying a badge alignment. | ||
* | ||
* @package core_badges | ||
* @copyright 2018 Dani Palou <[email protected]> | ||
|
@@ -29,13 +29,13 @@ | |
use core\external\exporter; | ||
|
||
/** | ||
* Class for displaying a badge competency. | ||
* Class for displaying a badge alignment. | ||
* | ||
* @package core_badges | ||
* @copyright 2018 Dani Palou <[email protected]> | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later | ||
*/ | ||
class competency_exporter extends exporter { | ||
class alignment_exporter extends exporter { | ||
|
||
/** | ||
* Return the list of properties. | ||
|
@@ -46,7 +46,7 @@ protected static function define_properties() { | |
return [ | ||
'id' => [ | ||
'type' => PARAM_INT, | ||
'description' => 'Competency id', | ||
'description' => 'Alignment id', | ||
], | ||
'badgeid' => [ | ||
'type' => PARAM_INT, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.