#author("2023-08-29T03:28:27+00:00","default:iseki","iseki")
** $OUTPUT [#scff3424]
- http://docs.moodle.org/dev/Output_renderers
- lib/outputrenderers.php


*** OUTPUT [#ib4a87b2]
- echo $OUTPUT->heading()
- echo $OUTPUT->footer()  
- echo $OUTPUT->box_start()
- echo $OUTPUT->box_end()
- echo $OUTPUT->help_icon()
- echo $OUTPUT->single_select() 
- echo $OUTPUT->user_picture($user, array('courseid'=>$courseid)
- echo $OUTPUT->action_link($url, $icon_url, new popup_action('click', $url));


**** $OUTPUT->header() [#yfe4871a]
- %%print_header($title, $heading, $navigation, $focus, $meta, $cache, $button, $menu, $usexml, $bodytags, $return)%% は非推奨
--  $PAGE と $OUTPUT を使う
 $PAGE->set_title($title);
 $PAGE->set_heading($heading);
 $PAGE->set_cacheable($cache); // true
 $PAGE->set_button($button); // ' '
 $PAGE->set_headingmenu($menu);
 
 require_login($course->id);
 echo $OUTPUT->header();

**** $OUTPUT->single_button() [#c4cb52dd]
 /**
  * Returns a form with a single button.
  *
  * @param string|moodle_url $url
  * @param string $label button text
  * @param string $method get or post submit method
  * @param array $options associative array {disabled, title, etc.}
  * @return string HTML fragment
  */
  public function single_button($url, $label, $method='post', array $options=null);

**** $OUTPUT->action_link($url, $icon_url, new popup_action('click', $url)); [#v320cb14]


****  $OUTPUT->user_picture(stdClass $user, array $options = null) [#rf590d31]
- lib/outputrenderers.php
- lib/outputcomponents.php

- $user : ユーザオブジェクト
- $options: courseid, link=true, size=35, alttext=true, popup=false

トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 ページ一覧 検索 最終更新   ヘルプ   最終更新のRSS