[ Index ] |
PHP Cross Reference of moodle-2.8 |
[Summary view] [Print] [Text view]
1 <?php 2 // This file is part of Moodle - http://moodle.org/ 3 // 4 // Moodle is free software: you can redistribute it and/or modify 5 // it under the terms of the GNU General Public License as published by 6 // the Free Software Foundation, either version 3 of the License, or 7 // (at your option) any later version. 8 // 9 // Moodle is distributed in the hope that it will be useful, 10 // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 // GNU General Public License for more details. 13 // 14 // You should have received a copy of the GNU General Public License 15 // along with Moodle. If not, see <http://www.gnu.org/licenses/>. 16 17 require_once($CFG->dirroot.'/mod/feedback/item/feedback_item_form_class.php'); 18 19 class feedback_info_form extends feedback_item_form { 20 protected $type = "info"; 21 22 public function definition() { 23 24 $item = $this->_customdata['item']; 25 $common = $this->_customdata['common']; 26 $positionlist = $this->_customdata['positionlist']; 27 $position = $this->_customdata['position']; 28 29 $mform =& $this->_form; 30 31 $mform->addElement('header', 'general', get_string($this->type, 'feedback')); 32 $mform->addElement('hidden', 'required', 0); 33 $mform->setType('required', PARAM_INT); 34 35 $mform->addElement('text', 36 'name', 37 get_string('item_name', 'feedback'), 38 array('size'=>FEEDBACK_ITEM_NAME_TEXTBOX_SIZE, 'maxlength'=>255)); 39 $mform->addElement('text', 40 'label', 41 get_string('item_label', 'feedback'), 42 array('size'=>FEEDBACK_ITEM_LABEL_TEXTBOX_SIZE, 'maxlength'=>255)); 43 44 $options=array(); 45 $options[1] = get_string('responsetime', 'feedback'); 46 $options[2] = get_string('course'); 47 $options[3] = get_string('coursecategory'); 48 $this->infotype = &$mform->addElement('select', 49 'presentation', 50 get_string('infotype', 'feedback'), 51 $options); 52 53 parent::definition(); 54 $this->set_data($item); 55 56 } 57 } 58
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:29:05 2014 | Cross-referenced by PHPXref 0.7.1 |