Ignore:
Timestamp:
2013/05/02 18:11:36 (13 years ago)
Author:
h_yoshimoto
Message:

#2236 2.12.3リリース以降の2.12-devへのコミット差し戻し

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/helper/SC_Helper_FileManager.php

    r22567 r22796  
    2929 * @version $Id$ 
    3030 */ 
    31 class SC_Helper_FileManager  
    32 { 
     31class SC_Helper_FileManager { 
    3332 
    3433    /** 
     
    3837     * @return void 
    3938     */ 
    40     function sfGetFileList($dir) 
    41     { 
     39    function sfGetFileList($dir) { 
    4240        $arrFileList = array(); 
    4341        $arrDirList = array(); 
     
    9391     * @return void 
    9492     */ 
    95     function sfGetDirSize($dir) 
    96     { 
     93    function sfGetDirSize($dir) { 
    9794        $bytes = 0; 
    9895        if (file_exists($dir)) { 
     
    132129     * @return array ツリー生成用の配列 
    133130     */ 
    134     function sfGetFileTree($dir, $tree_status) 
    135     { 
     131    function sfGetFileTree($dir, $tree_status) { 
    136132 
    137133        $cnt = 0; 
     
    174170     * @return array ツリー生成用の配列 
    175171     */ 
    176     function sfGetFileTreeSub($dir, $default_rank, &$cnt, &$arrTree, $tree_status) 
    177     { 
     172    function sfGetFileTreeSub($dir, $default_rank, &$cnt, &$arrTree, $tree_status) { 
    178173 
    179174        if (file_exists($dir)) { 
     
    222217     * @return bool ファイルが存在する場合 true 
    223218     */ 
    224     function sfDirChildExists($dir) 
    225     { 
     219    function sfDirChildExists($dir) { 
    226220        if (file_exists($dir)) { 
    227221            if (is_dir($dir)) { 
     
    249243     * @return bool 前回開かれた状態の場合 true 
    250244     */ 
    251     function lfIsFileOpen($dir, $tree_status) 
    252     { 
     245    function lfIsFileOpen($dir, $tree_status) { 
    253246        $arrTreeStatus = explode('|', $tree_status); 
    254247        if (in_array($dir, $arrTreeStatus)) { 
     
    265258     * @return void 
    266259     */ 
    267     function sfDownloadFile($file) 
    268     { 
     260    function sfDownloadFile($file) { 
    269261        // ファイルの場合はダウンロードさせる 
    270262        Header('Content-disposition: attachment; filename='.basename($file)); 
     
    282274     * @return bool ファイル作成に成功した場合 true 
    283275     */ 
    284     function sfCreateFile($file, $mode = '') 
    285     { 
     276    function sfCreateFile($file, $mode = '') { 
    286277        // 行末の/を取り除く 
    287278        if ($mode != '') { 
     
    300291     * @return string ファイルの内容 
    301292     */ 
    302     function sfReadFile($filename) 
    303     { 
     293    function sfReadFile($filename) { 
    304294        $str = ''; 
    305295        // バイナリモードでオープン 
     
    321311     * @return boolean ファイルの書き込みに成功した場合 true 
    322312     */ 
    323     function sfWriteFile($filename, $value) 
    324     { 
     313    function sfWriteFile($filename, $value) { 
    325314        if (!is_dir(dirname($filename))) { 
    326315            SC_Utils_Ex::recursiveMkdir(dirname($filename), 0777); 
     
    343332     * @return boolean 成功した場合 true; 失敗した場合 false 
    344333     */ 
    345     function downloadArchiveFiles($dir, $template_code) 
    346     { 
     334    function downloadArchiveFiles($dir, $template_code) { 
    347335        // ダウンロードされるファイル名 
    348336        $dlFileName = 'tpl_package_' . $template_code . '_' . date('YmdHis') . '.tar.gz'; 
     
    382370     * @return boolean Archive_Tar::extractModify()のエラー 
    383371     */ 
    384     function unpackFile($path) 
    385     { 
     372    function unpackFile($path) { 
    386373        // 圧縮フラグTRUEはgzip解凍をおこなう 
    387374        $tar = new Archive_Tar($path, true); 
     
    411398     * @return void 
    412399     */ 
    413     function deleteFile($path, $del_myself = true) 
    414     { 
     400    function deleteFile($path, $del_myself = true) { 
    415401        $flg = false; 
    416402        // 対象が存在するかを検証. 
Note: See TracChangeset for help on using the changeset viewer.