コード例 #1
0
 function definition()
 {
     $mform =& $this->_form;
     $mform->addElement('hidden', 'id');
     $mform->addElement('hidden', 'role');
     parent::definition();
 }
コード例 #2
0
ファイル: bulkuserform.class.php プロジェクト: jamesmcq/elis
 /**
  * Defines items in the form.
  */
 function definition()
 {
     global $CFG;
     $mform =& $this->_form;
     $mform->addElement('select', 'do', get_string('withselectedusers'), $this->_customdata);
     parent::definition();
 }
コード例 #3
0
ファイル: select_form.class.php プロジェクト: jamesmcq/elis
 function definition()
 {
     $mform =& $this->_form;
     $mform->addElement('hidden', 'id');
     $mform->setType('id', PARAM_INT);
     parent::definition();
 }
コード例 #4
0
 function definition()
 {
     $mform =& $this->_form;
     $mform->addElement('hidden', 'id');
     $autoenrol =& $mform->addElement('checkbox', 'autoenrol', get_string('cluster_manual_autoenrol_label', 'block_curr_admin'));
     $mform->addElement('checkbox', 'leader', get_string('cluster_manual_leader_label', 'block_curr_admin'));
     parent::definition();
 }
コード例 #5
0
 function definition()
 {
     global $CFG;
     $mform =& $this->_form;
     $actions = array('inactive' => get_string('mark_inactive', 'block_curr_admin'), 'delete' => get_string('delete'));
     $mform->addElement('select', 'do', get_string('withselectedusers'), $actions);
     parent::definition();
 }
コード例 #6
0
 function definition()
 {
     global $CFG;
     $mform =& $this->_form;
     $mform->addElement('hidden', 'id');
     $actions = array('remove' => get_string('remove'), 'overenrol' => get_string('over_enrol', 'block_curr_admin'));
     $mform->addElement('select', 'do', get_string('withselectedusers'), $actions);
     parent::definition();
 }
コード例 #7
0
ファイル: waitlistform.class.php プロジェクト: jamesmcq/elis
 function definition()
 {
     global $CFG;
     $mform =& $this->_form;
     $mform->addElement('hidden', 'id');
     $mform->setType('id', PARAM_INT);
     $actions = array('remove' => get_string('remove'), 'overenrol' => get_string('over_enrol', 'local_elisprogram'));
     $mform->addElement('select', 'do', get_string('withselectedusers'), $actions);
     parent::definition();
 }