Changeset 2605
- Timestamp:
- 11/02/06 17:32:56 (7 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfPropelFileStoragePlugin/lib/sfPropelFileStorageUtil.class.php
r2593 r2605 94 94 } 95 95 96 /* Thanks to: http://www.php.net/manual/en/function.filesize.php#64387 */ 97 public static function parseFileSize($size) 98 { 99 /* 100 Returns a human readable size 101 */ 96 97 public static function parse_file_size($size){ 98 // deprecated in favor of camel cased parseFileSize. 99 sfContext::getInstance()->getLogger()->err('The method "sfPropelFileStorageUtil::parse_file_size" has been relocated into the helper PropelFileStorage. This method will be removed from sfPropelFileStorageUtil in a future release.'); 100 102 101 $i=0; 103 102 $iec = array("B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"); … … 106 105 $i++; 107 106 } 107 108 108 return substr($size,0,strpos($size,'.')+4).' '.$iec[$i]; 109 }110 111 public static function parse_file_size($size){112 // deprecated in favor of camel cased parseFileSize.113 return self::parseFileSize($size);114 109 } 115 110