MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trail...
[moodle.git] / mod / feedback / item / captcha / captcha_form.php
CommitLineData
6ee09cfe 1<?php
2
a627a9c1 3require_once($CFG->dirroot.'/mod/feedback/item/feedback_item_form_class.php');
6ee09cfe 4
a627a9c1 5class feedback_captcha_form extends feedback_item_form {
6ee09cfe 6 var $type = "captcha";
7 var $requiredcheck;
8 var $itemname;
b7a47958 9 var $itemlabel;
6ee09cfe 10 var $select;
11
12 function definition() {
13 $mform =& $this->_form;
14
15 $mform->addElement('header', 'general', get_string($this->type, 'feedback'));
16 $this->requiredcheck = $mform->addElement('checkbox', 'required', get_string('required', 'feedback'));
17
ed93c78b 18 $this->itemname = $mform->addElement('text', 'itemname', get_string('item_name', 'feedback'), array('size="'.FEEDBACK_ITEM_NAME_TEXTBOX_SIZE.'"','maxlength="255"'));
b7a47958 19 $this->itemlabel = $mform->addElement('text', 'itemlabel', get_string('item_label', 'feedback'), array('size="'.FEEDBACK_ITEM_LABEL_TEXTBOX_SIZE.'"','maxlength="255"'));
6ee09cfe 20
21 $this->select = $mform->addElement('select',
22 'count_of_nums',
23 get_string('count_of_nums', 'feedback').'&nbsp;',
24 array_slice(range(0,10),3,10,true));
25
26 }
27}
28?>