Ignore:
Timestamp:
2013/02/18 19:09:54 (11 years ago)
Author:
shutta
Message:

#2043 (typo修正・ソース整形・ソースコメントの改善 for 2.12.4)
Zend Framework PHP 標準コーディング規約のコーディングスタイルへ準拠。
classおよびfunctionの開始波括弧「{」のスタイルを修正。

File:
1 edited

Legend:

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

    r22206 r22567  
    2929 * @version $Id$ 
    3030 */ 
    31 class SC_Helper_FileManager { 
     31class SC_Helper_FileManager  
     32{ 
    3233 
    3334    /** 
     
    3738     * @return void 
    3839     */ 
    39     function sfGetFileList($dir) { 
     40    function sfGetFileList($dir) 
     41    { 
    4042        $arrFileList = array(); 
    4143        $arrDirList = array(); 
     
    9193     * @return void 
    9294     */ 
    93     function sfGetDirSize($dir) { 
     95    function sfGetDirSize($dir) 
     96    { 
    9497        $bytes = 0; 
    9598        if (file_exists($dir)) { 
     
    129132     * @return array ツリー生成用の配列 
    130133     */ 
    131     function sfGetFileTree($dir, $tree_status) { 
     134    function sfGetFileTree($dir, $tree_status) 
     135    { 
    132136 
    133137        $cnt = 0; 
     
    170174     * @return array ツリー生成用の配列 
    171175     */ 
    172     function sfGetFileTreeSub($dir, $default_rank, &$cnt, &$arrTree, $tree_status) { 
     176    function sfGetFileTreeSub($dir, $default_rank, &$cnt, &$arrTree, $tree_status) 
     177    { 
    173178 
    174179        if (file_exists($dir)) { 
     
    217222     * @return bool ファイルが存在する場合 true 
    218223     */ 
    219     function sfDirChildExists($dir) { 
     224    function sfDirChildExists($dir) 
     225    { 
    220226        if (file_exists($dir)) { 
    221227            if (is_dir($dir)) { 
     
    243249     * @return bool 前回開かれた状態の場合 true 
    244250     */ 
    245     function lfIsFileOpen($dir, $tree_status) { 
     251    function lfIsFileOpen($dir, $tree_status) 
     252    { 
    246253        $arrTreeStatus = explode('|', $tree_status); 
    247254        if (in_array($dir, $arrTreeStatus)) { 
     
    258265     * @return void 
    259266     */ 
    260     function sfDownloadFile($file) { 
     267    function sfDownloadFile($file) 
     268    { 
    261269        // ファイルの場合はダウンロードさせる 
    262270        Header('Content-disposition: attachment; filename='.basename($file)); 
     
    274282     * @return bool ファイル作成に成功した場合 true 
    275283     */ 
    276     function sfCreateFile($file, $mode = '') { 
     284    function sfCreateFile($file, $mode = '') 
     285    { 
    277286        // 行末の/を取り除く 
    278287        if ($mode != '') { 
     
    291300     * @return string ファイルの内容 
    292301     */ 
    293     function sfReadFile($filename) { 
     302    function sfReadFile($filename) 
     303    { 
    294304        $str = ''; 
    295305        // バイナリモードでオープン 
     
    311321     * @return boolean ファイルの書き込みに成功した場合 true 
    312322     */ 
    313     function sfWriteFile($filename, $value) { 
     323    function sfWriteFile($filename, $value) 
     324    { 
    314325        if (!is_dir(dirname($filename))) { 
    315326            SC_Utils_Ex::recursiveMkdir(dirname($filename), 0777); 
     
    332343     * @return boolean 成功した場合 true; 失敗した場合 false 
    333344     */ 
    334     function downloadArchiveFiles($dir, $template_code) { 
     345    function downloadArchiveFiles($dir, $template_code) 
     346    { 
    335347        // ダウンロードされるファイル名 
    336348        $dlFileName = 'tpl_package_' . $template_code . '_' . date('YmdHis') . '.tar.gz'; 
     
    370382     * @return boolean Archive_Tar::extractModify()のエラー 
    371383     */ 
    372     function unpackFile($path) { 
     384    function unpackFile($path) 
     385    { 
    373386        // 圧縮フラグTRUEはgzip解凍をおこなう 
    374387        $tar = new Archive_Tar($path, true); 
     
    398411     * @return void 
    399412     */ 
    400     function deleteFile($path, $del_myself = true) { 
     413    function deleteFile($path, $del_myself = true) 
     414    { 
    401415        $flg = false; 
    402416        // 対象が存在するかを検証. 
Note: See TracChangeset for help on using the changeset viewer.