Ignore:
Timestamp:
2013/01/16 10:36:02 (11 years ago)
Author:
undertree
Message:

#1609 CSV_SIZE による制限を画面上に表示する

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/util/SC_Utils.php

    r22206 r22251  
    17991799        } 
    18001800    } 
     1801 
     1802    /** 
     1803     * データ量の単位を付与する 
     1804     *  
     1805     * @param int $data 
     1806     * @return string 
     1807     */ 
     1808    function getUnitDataSize($data){ 
     1809 
     1810        if(CSV_SIZE < 1000){ 
     1811            $data = CSV_SIZE . "KB"; 
     1812        }elseif(CSV_SIZE < 1000000){  
     1813            $data = CSV_SIZE/1000 . "MB"; 
     1814        }else{ 
     1815            $data = CSV_SIZE/1000000 . "GB"; 
     1816        } 
     1817        return $data; 
     1818    } 
    18011819} 
Note: See TracChangeset for help on using the changeset viewer.