| [ Index ] |
PHP Cross Reference of Moodle 1.9.3 [Build 15-Oct-2008] |
[Summary view] [Print] [Text view]
1 <?php // $Id: edit_form.php,v 1.2.2.6 2008/02/29 09:31:58 scyrma Exp $ 2 3 require_once($CFG->dirroot.'/lib/formslib.php'); 4 5 class tag_edit_form extends moodleform { 6 7 function definition () { 8 9 $mform =& $this->_form; 10 11 $mform->addElement('header', 'tag', get_string('description','tag')); 12 13 $mform->addElement('hidden', 'id'); 14 15 $systemcontext = get_context_instance(CONTEXT_SYSTEM); 16 17 if (has_capability('moodle/tag:manage', $systemcontext)) { 18 $mform->addElement('text', 'rawname', get_string('name', 'tag'), 19 'maxlength="'.TAG_MAX_LENGTH.'" size="'.TAG_MAX_LENGTH.'"'); 20 } 21 22 $mform->addElement('htmleditor', 'description', get_string('description', 'tag'), array('rows'=>20)); 23 24 $mform->addElement('format', 'descriptionformat', get_string('format')); 25 26 if (has_capability('moodle/tag:manage', $systemcontext)) { 27 $mform->addElement('checkbox', 'tagtype', get_string('officialtag', 'tag')); 28 } 29 30 $mform->addElement('html', '<br/><div id="relatedtags-autocomplete-container">'); 31 $mform->addElement('textarea', 'relatedtags', get_string('relatedtags','tag'), 'cols="50" rows="3"'); 32 $mform->setType('relatedtags', PARAM_TAGLIST); 33 $mform->addElement('html', '</div>'); 34 $mform->addElement('html', '<div id="relatedtags-autocomplete"></div>'); 35 36 $this->add_action_buttons(false, get_string('updatetag', 'tag')); 37 38 } 39 40 } 41 42 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Jan 14 11:33:29 2009 | Cross-referenced by PHPXref 0.7 |