示例#1
0
 protected function get_options() {
     global $CFG;
     $options = parent::get_options();
     $options['file'] = 'local/clclasses/classlib.php';
     $options['classid'] = $this->classid;
     return $options;
 }
 protected function get_options()
 {
     $options = parent::get_options();
     $options['companyid'] = $this->companyid;
     $options['file'] = 'blocks/iomad_company_admin/lib.php';
     return $options;
 }
 protected function get_options()
 {
     global $CFG;
     $options = parent::get_options();
     $options['file'] = $CFG->admin . '/roles/lib.php';
     return $options;
 }
 protected function get_options() {
     global $CFG;
     $options = parent::get_options();
     $options['file'] = 'blocks/learning_plan/enrolluserformlib.php';
     $options['learningplanid'] = $this->learningplanid;
     $options['batch'] = $this->batch;
     return $options;
 }
 protected function get_options() {
     global $CFG;
     $options = parent::get_options();
     $options['file'] = 'local/teammanager/employeeformlib.php';
     $options['teammanagerid'] = $this->teammanagerid;        
   
     return $options;
 }
 protected function get_options()
 {
     global $CFG;
     $options = parent::get_options();
     $options['file'] = $CFG->admin . '/roles/lib.php';
     $options['roleid'] = $this->roleid;
     $options['contextid'] = $this->context->id;
     return $options;
 }
 /**
  * Returns an array of options to seralise and store for searches
  *
  * @return array
  */
 protected function get_options()
 {
     $options = parent::get_options();
     $options['file'] = $this->get_filepath();
     $options['context'] = $this->context;
     $options['currentgroup'] = $this->currentgroup;
     $options['forum'] = $this->forum;
     $options['discussion'] = $this->discussion;
     return $options;
 }
 /**
  * Returns an array of options to seralise and store for searches
  *
  * @return array
  */
 protected function get_options()
 {
     global $CFG;
     $options = parent::get_options();
     $options['file'] = substr(__FILE__, strlen($CFG->dirroot . '/'));
     $options['context'] = $this->context;
     $options['currentgroup'] = $this->currentgroup;
     $options['forumid'] = $this->forumid;
     return $options;
 }
示例#9
0
 /**
  * Returns an array of options to seralise and store for searches
  *
  * @return array
  */
 protected function get_options()
 {
     global $CFG;
     $options = parent::get_options();
     $options['file'] = 'badges/lib/awardlib.php';
     $options['context'] = $this->context;
     $options['badgeid'] = $this->badgeid;
     $options['issuerid'] = $this->issuerid;
     $options['issuerrole'] = $this->issuerrole;
     return $options;
 }
示例#10
0
 public function recipients_selection_form(user_selector_base $existinguc, user_selector_base $potentialuc)
 {
     $output = '';
     $formattributes = array();
     $formattributes['id'] = 'recipientform';
     $formattributes['action'] = $this->page->url;
     $formattributes['method'] = 'post';
     $output .= html_writer::start_tag('form', $formattributes);
     $output .= html_writer::empty_tag('input', array('type' => 'hidden', 'name' => 'sesskey', 'value' => sesskey()));
     $existingcell = new html_table_cell();
     $existingcell->text = $existinguc->display(true);
     $existingcell->attributes['class'] = 'existing';
     $actioncell = new html_table_cell();
     $actioncell->text = html_writer::start_tag('div', array());
     $actioncell->text .= html_writer::empty_tag('input', array('type' => 'submit', 'name' => 'award', 'value' => $this->output->larrow() . ' ' . get_string('award', 'badges'), 'class' => 'actionbutton'));
     $actioncell->text .= html_writer::end_tag('div', array());
     $actioncell->attributes['class'] = 'actions';
     $potentialcell = new html_table_cell();
     $potentialcell->text = $potentialuc->display(true);
     $potentialcell->attributes['class'] = 'potential';
     $table = new html_table();
     $table->attributes['class'] = 'recipienttable boxaligncenter';
     $table->data = array(new html_table_row(array($existingcell, $actioncell, $potentialcell)));
     $output .= html_writer::table($table);
     $output .= html_writer::end_tag('form');
     return $output;
 }
示例#11
0
 /**
  * Add the file name to the $options array to make AJAX searching work
  * @return array
  */
 protected function get_options()
 {
     $options = parent::get_options();
     $options['file'] = 'admin/report/targetgrades/lib.php';
     return $options;
 }
示例#12
0
 /**
  * This is used to display a control containing all of the subscribed users so that
  * it can be searched
  *
  * @param user_selector_base $existingusers
  * @return string
  */
 public function subscribed_users(user_selector_base $existingusers)
 {
     $output = $this->output->box_start('subscriberdiv boxaligncenter');
     $output .= html_writer::tag('p', get_string('forcesubscribed', 'forum'));
     $output .= $existingusers->display(true);
     $output .= $this->output->box_end();
     return $output;
 }
示例#13
0
 protected function get_options()
 {
     $options = parent::get_options();
     $options['sessionid'] = $this->sessionid;
     $options['file'] = 'mod/facetoface/lib.php';
     return $options;
 }
示例#14
0
 protected function get_options()
 {
     $options = parent::get_options();
     $options['cohortid'] = $this->cohortid;
     $options['file'] = 'cohort/locallib.php';
     return $options;
 }
示例#15
0
 protected function get_options()
 {
     $options = parent::get_options();
     $options['enrolid'] = $this->enrolid;
     $options['file'] = 'enrol/manual/locallib.php';
     return $options;
 }
示例#16
0
文件: lib.php 项目: nmicha/moodle
 protected function get_options()
 {
     $options = parent::get_options();
     $options['groupid'] = $this->groupid;
     $options['courseid'] = $this->courseid;
     return $options;
 }
示例#17
0
文件: lib.php 项目: Burick/moodle
 /**
  * This options are automatically used by the AJAX search
  * @global object $CFG
  * @return object options pass to the constructor when AJAX search call a new selector
  */
 protected function get_options()
 {
     global $CFG;
     $options = parent::get_options();
     $options['file'] = $CFG->admin . '/webservice/lib.php';
     //need to be set, otherwise
     // the /user/selector/search.php
     //will fail to find this user_selector class
     $options['serviceid'] = $this->serviceid;
     $options['displayallowedusers'] = $this->displayallowedusers;
     return $options;
 }
 protected function get_options() {
     $options = parent::get_options();
     $options['positionsid'] = $this->positionsid;
     $options['file'] = 'local/batches/assignuserlib.php';
     return $options;
 }
 protected function get_options()
 {
     $options = parent::get_options();
     $options['companyid'] = $this->companyid;
     $options['licenseid'] = $this->licenseid;
     $options['departmentid'] = $this->departmentid;
     $options['subdepartments'] = $this->subdepartments;
     $options['parentdepartmentid'] = $this->parentdepartmentid;
     $options['file'] = 'blocks/iomad_company_admin/lib.php';
     return $options;
 }
 protected function get_options()
 {
     $options = parent::get_options();
     $options['file'] = 'mod/booking/locallib.php';
     $options['bookingid'] = $this->bookingid;
     $options['potentialusers'] = $this->potentialusers;
     $options['optionid'] = $this->optionid;
     // Add our custom options to the $options array.
     return $options;
 }
示例#21
0
 protected function get_options()
 {
     $options = parent::get_options();
     $options['hostid'] = $this->hostid;
     $options['remotecourseid'] = $this->remotecourseid;
     $options['file'] = 'mnet/service/enrol/locallib.php';
     return $options;
 }
 /**
  * Add the file name to the $options array to make AJAX searching work
  * @return array
  */
 protected function get_options()
 {
     $options = parent::get_options();
     $options['file'] = 'local/progressreview/course_selector.php';
     return $options;
 }