flagflag  If you want to see English page, please click "English" Button at Left.
2: 2014-05-14 (水) 16:53:51 iseki ソース 3: 2014-06-03 (火) 17:38:39 iseki ソース
Line 1: Line 1:
** Log System [#bef0ca17] ** Log System [#bef0ca17]
*** DB [#h7179fc9] *** DB [#h7179fc9]
 +- http://docs.moodle.org/dev/Migrating_log​_access_in_reports
- mdl_logstore_standard_log - mdl_logstore_standard_log
 MariaDB [moodle_db]> show columns from mdl_logstore_standard_log;  MariaDB [moodle_db]> show columns from mdl_logstore_standard_log;
Line 30: Line 31:
 21 rows in set (0.00 sec)  21 rows in set (0.00 sec)
#br #br
 +
*** add_to_log() [#x9d24c14] *** add_to_log() [#x9d24c14]
- add_to_log() has been deprecated, please rewrite your code to the new events API - add_to_log() has been deprecated, please rewrite your code to the new events API
 +- http://docs.moodle.org/dev/Migrating_log​ging_calls_in_plugins
 +
 +
 +       $event = \mod_wiki\event\page_updated::create(
 +               array(
 +                   'context' => $context,
 +                   'objectid' => $wikipage->id,
 +                   'relateduserid' => $userid,
 +                   'other' => array(
 +                       'newcontent' => $newcontent
 +                       )
 +                   ));
 +       $event->add_record_snapshot('wiki', $wiki);
 +       $event->add_record_snapshot('wiki_pages'​, $wikipage);
 +       $event->add_record_snapshot('wiki_versio​ns', $version);
 +       $event->trigger();
 +
 +   $params = array(
 +       'context' => $context,
 +       'objectid' => $post->id,
 +       'other' => array(
 +           'content' => $post->message,
 +           'pathnamehashes' => array_keys($files),
 +           'discussionid' => $post->discussion,
 +           'triggeredfrom' => $name,
 +       )
 +   );
 +   $event = \mod_forum\event\assessable_uploaded::cr​eate($params);
 +   $event->trigger();
#br #br


トップ   新規 ページ一覧 単語検索 最終更新   ヘルプ   最終更新のRSS 1.0 最終更新のRSS 2.0 最終更新のRSS Atom

サイト内 検索

ログイン

ユーザー名:

パスワード:


パスワード紛失
新規登録

サブ メニュー

ミニカレンダー

前月2024年 4月翌月
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
<今日>

オンライン状況

108 人のユーザが現在オンラインです。 (32 人のユーザが xpwiki を参照しています。)

登録ユーザ: 0
ゲスト: 108

もっと...

アクセスカウンタ

今日 : 1628316283162831628316283
昨日 : 1529415294152941529415294
総計 : 2341098323410983234109832341098323410983234109832341098323410983
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com