function definition()
 {
     $mform =& $this->_form;
     $mform->addElement('hidden', 'id');
     $mform->addElement('hidden', 'role');
     parent::definition();
 }
示例#2
0
 /**
  * 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
 function definition()
 {
     $mform =& $this->_form;
     $mform->addElement('hidden', 'id');
     $mform->setType('id', PARAM_INT);
     parent::definition();
 }
 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();
 }
 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();
 }
 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
 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();
 }