flagflag  If you want to see English page, please click "English" Button at Left.
Page Top
class file_storage anchor.png
  • 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);
     
Page Top
get_file_storage() anchor.png
  • lib/moodlelib.php
  • file_storage クラスのインスタンスを生成
    $fs = get_file_storage();
Page Top
$fs->get_area_files() anchor.png
  • 格納ディレクトリの情報オブジェクトの配列を得る.
    • ディレクトリが 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();
    }
     

トップ   凍結 差分 バックアップ 複製 名前変更 リロード   新規 ページ一覧 単語検索 最終更新   ヘルプ   最終更新のRSS 1.0 最終更新のRSS 2.0 最終更新のRSS Atom
Counter: 302, today: 1, yesterday: 2
最終更新: 2021-07-29 (木) 14:28:32 (JST) (995d) by iseki

サイト内 検索

ログイン

ユーザー名:

パスワード:


パスワード紛失
新規登録

サブ メニュー

ミニカレンダー

前月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
<今日>

オンライン状況

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

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

もっと...

アクセスカウンタ

今日 : 5743574357435743
昨日 : 1169911699116991169911699
総計 : 2329307823293078232930782329307823293078232930782329307823293078
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com