edit_description_form.php

来自「很棒的在线教学系统」· PHP 代码 · 共 33 行

PHP
33
字号
<?php  // $Id: edit_description_form.php,v 1.3.2.1 2009/02/19 01:09:35 tjhunt Exp $/** * Defines the editing form for the description question type. * * @copyright &copy; 2007 Jamie Pratt * @author Jamie Pratt me@jamiep.org * @license http://www.gnu.org/copyleft/gpl.html GNU Public License * @package questionbank * @subpackage questiontypes *//** * description editing form definition. */class question_edit_description_form extends question_edit_form {    /**     * Add question-type specific form fields.     *     * @param MoodleQuickForm $mform the form being built.     */    function definition_inner(&$mform) {        //don't need these default elements :        $mform->removeElement('defaultgrade');        $mform->removeElement('penalty');        $mform->addElement('hidden', 'defaultgrade', 0);    }    function qtype() {        return 'description';    }}?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?