當前位置: 首頁>>代碼示例>>PHP>>正文


PHP user_selector_base::display方法代碼示例

本文整理匯總了PHP中user_selector_base::display方法的典型用法代碼示例。如果您正苦於以下問題:PHP user_selector_base::display方法的具體用法?PHP user_selector_base::display怎麽用?PHP user_selector_base::display使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在user_selector_base的用法示例。


在下文中一共展示了user_selector_base::display方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的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


注:本文中的user_selector_base::display方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。