flagflag  If you want to see English page, please click "English" Button at Left.
  
現: 2021-07-29 (木) 14:28:32 iseki ソース
Line 1: Line 1:
 +*** File Storage Class [#d0e8dc19]
 +**** class file_storage [#yd2cad53]
 +- lib/filestorage/file_storage.php
 +
 +- array get_area_files($contextid, $component, $filearea, $itemid=false, $sort="itemid, filepath, filename", $includedirs=true);
 +- bool delete_area_files($contextid, $component = false, $filearea = false, $itemid = false);
 +#br
 +
 +**** get_file_storage() [#jea0bc0f]
 +- lib/moodlelib.php
 +
 +- file_storage クラスのインスタンスを生成
 + $fs = get_file_storage();
 +**** $fs->get_area_files() [#k38d2a71]
 +- 格納ディレクトリの情報オブジェクトの配列を得る.
 +-- ディレクトリが A/B/C/D/ の場合.通常 A はコンテキストID.
 +  $files = $fs->get_area_files(A, B, C, D);
 +-- 使用例
 + $files = $fs->get_area_files($context->id, 'mod_altwiki', 'attachments', $resourceid);
 +
 +- 格納ファイルの名前を得る.ただし,カレントディレクトリ '.' を含む.
 + foreach ($files as $file) {
 +     echo $file->get_name();
 + }
 +#br
  

  • Moodle/Programming/File Storage のバックアップ差分(No. All)
    • 現: 2021-07-29 (木) 14:28:32 iseki

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

サイト内 検索

ログイン

ユーザー名:

パスワード:


パスワード紛失
新規登録

サブ メニュー

ミニカレンダー

前月2024年 5月翌月
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 31
<今日>

オンライン状況

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

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

もっと...

アクセスカウンタ

今日 : 1448214482144821448214482
昨日 : 1412914129141291412914129
総計 : 2346009223460092234600922346009223460092234600922346009223460092
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com