| [ 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.5.2.1 2008/01/10 10:58:09 tjhunt Exp $ 2 3 require_once($CFG->libdir.'/formslib.php'); 4 5 class note_edit_form extends moodleform { 6 7 function definition() { 8 $mform =& $this->_form; 9 $strcontent = get_string('content', 'notes'); 10 $strpublishstate = get_string('publishstate', 'notes'); 11 $mform->addElement('header', 'general', get_string('note', 'notes')); 12 13 $mform->addElement('textarea', 'content', $strcontent, array('rows'=>15, 'cols'=>40)); 14 $mform->setType('content', PARAM_RAW); 15 $mform->addRule('content', get_string('nocontent', 'notes'), 'required', null, 'client'); 16 17 $mform->addElement('select', 'publishstate', $strpublishstate, note_get_state_names()); 18 $mform->setDefault('publishstate', NOTES_STATE_PUBLIC); 19 $mform->setType('publishstate', PARAM_ALPHA); 20 $mform->setHelpButton('publishstate', array('status', $strpublishstate, 'notes')); 21 22 $this->add_action_buttons(); 23 24 $mform->addElement('hidden', 'course'); 25 $mform->setType('course', PARAM_INT); 26 27 $mform->addElement('hidden', 'user'); 28 $mform->setType('user', PARAM_INT); 29 30 $mform->addElement('hidden', 'note'); 31 $mform->setType('note', PARAM_INT); 32 } 33 } 34 ?>
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 |