本文整理汇总了PHP中user_selector_base类的典型用法代码示例。如果您正苦于以下问题:PHP user_selector_base类的具体用法?PHP user_selector_base怎么用?PHP user_selector_base使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了user_selector_base类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: recipients_selection_form
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;
}
开发者ID:Jtgadbois,项目名称:Pedadida,代码行数:27,代码来源:renderer.php
示例2: subscribed_users
/**
* 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;
}
开发者ID:educakanchay,项目名称:campus,代码行数:15,代码来源:renderer.php
示例3: get_options
protected function get_options() {
global $CFG;
$options = parent::get_options();
$options['file'] = 'local/clclasses/classlib.php';
$options['classid'] = $this->classid;
return $options;
}
开发者ID:anilch,项目名称:Personel,代码行数:7,代码来源:classlib.php
示例4: get_options
protected function get_options()
{
$options = parent::get_options();
$options['companyid'] = $this->companyid;
$options['file'] = 'blocks/iomad_company_admin/lib.php';
return $options;
}
开发者ID:sumitnegi933,项目名称:Moodle_lms_New,代码行数:7,代码来源:user_selectors.php
示例5: get_options
protected function get_options()
{
global $CFG;
$options = parent::get_options();
$options['file'] = $CFG->admin . '/roles/lib.php';
return $options;
}
开发者ID:evltuma,项目名称:moodle,代码行数:7,代码来源:admins_potential_selector.php
示例6: get_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;
}
开发者ID:narasimhaeabyas,项目名称:tataaiapro,代码行数:8,代码来源:enrolluserformlib.php
示例7: get_options
protected function get_options() {
global $CFG;
$options = parent::get_options();
$options['file'] = 'local/teammanager/employeeformlib.php';
$options['teammanagerid'] = $this->teammanagerid;
return $options;
}
开发者ID:narasimhaeabyas,项目名称:tataaiapro,代码行数:8,代码来源:employeeformlib.php
示例8: get_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;
}
开发者ID:pzhu2004,项目名称:moodle,代码行数:9,代码来源:assign_user_selector_base.php
示例9: get_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;
}
开发者ID:cdsmith-umn,项目名称:moodle-mod_hsuforum,代码行数:15,代码来源:abstract.php
示例10: get_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;
}
开发者ID:evltuma,项目名称:moodle,代码行数:15,代码来源:subscriber_selector_base.php
示例11: get_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'] = 'badges/lib/awardlib.php';
$options['context'] = $this->context;
$options['badgeid'] = $this->badgeid;
$options['issuerid'] = $this->issuerid;
$options['issuerrole'] = $this->issuerrole;
return $options;
}
开发者ID:evltuma,项目名称:moodle,代码行数:16,代码来源:awardlib.php
示例12: get_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'] = 'admin/report/targetgrades/lib.php';
return $options;
}
开发者ID:rtsfc,项目名称:moodle-report_targetgrades,代码行数:10,代码来源:lib.php
示例13: get_options
protected function get_options()
{
$options = parent::get_options();
$options['sessionid'] = $this->sessionid;
$options['file'] = 'mod/facetoface/lib.php';
return $options;
}
开发者ID:CWRTP,项目名称:facetoface-2.0,代码行数:7,代码来源:lib.php
示例14: get_options
protected function get_options()
{
$options = parent::get_options();
$options['cohortid'] = $this->cohortid;
$options['file'] = 'cohort/locallib.php';
return $options;
}
开发者ID:helenagarcia90,项目名称:moodle,代码行数:7,代码来源:locallib.php
示例15: get_options
protected function get_options()
{
$options = parent::get_options();
$options['enrolid'] = $this->enrolid;
$options['file'] = 'enrol/manual/locallib.php';
return $options;
}
开发者ID:evltuma,项目名称:moodle,代码行数:7,代码来源:locallib.php
示例16: get_options
protected function get_options()
{
$options = parent::get_options();
$options['groupid'] = $this->groupid;
$options['courseid'] = $this->courseid;
return $options;
}
开发者ID:nmicha,项目名称:moodle,代码行数:7,代码来源:lib.php
示例17: get_options
/**
* 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;
}
开发者ID:Burick,项目名称:moodle,代码行数:17,代码来源:lib.php
示例18: get_options
protected function get_options() {
$options = parent::get_options();
$options['positionsid'] = $this->positionsid;
$options['file'] = 'local/batches/assignuserlib.php';
return $options;
}
开发者ID:narasimhaeabyas,项目名称:tataaiapro,代码行数:6,代码来源:assignuserlib.php
示例19: get_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;
}
开发者ID:sumitnegi933,项目名称:Moodle_lms_New,代码行数:11,代码来源:user_selectors.php
示例20: get_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;
}
开发者ID:375michael40veit,项目名称:moodle-mod_booking,代码行数:10,代码来源:locallib.php
注:本文中的user_selector_base类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论