[ Index ] |
|
Code source de LifeType 1.2.4 |
1 <?php 2 3 lt_include( PLOG_CLASS_PATH."class/gallery/data/galleryresourcebasemetadatareader.class.php" ); 4 5 /** 6 * \ingroup Gallery 7 * 8 * methods for fetching metadata from zip file resources 9 */ 10 class GalleryResourceZipMetadataReader extends GalleryResourceBaseMetadataReader 11 { 12 function GalleryResourceZipMetadataReader( $resource ) 13 { 14 $this->GalleryResourceBaseMetadataReader( $resource ); 15 } 16 17 /** 18 * returns the total compressed size of this file 19 * 20 * @return the size in bytes 21 */ 22 function getCompressedSize() 23 { 24 return $this->_metadata["zip"]["compressed_size"]; 25 } 26 27 /** 28 * returns the total uncompressed size of the files in the package 29 * 30 * @return the size in bytes 31 */ 32 function getUncompressedSize() 33 { 34 return $this->_metadata["zip"]["uncompressed_size"]; 35 } 36 37 /** 38 * returns the total compressed size of this file, in a nicer, human-readable format 39 * 40 * @return a string representing the uncompressed size 41 */ 42 function getRoundedUncompressedSize() 43 { 44 return StringUtils::formatSize($this->_metadata["zip"]["uncompressed_size"]); 45 } 46 47 /** 48 * @return returns the number of files in the package 49 */ 50 function getTotalFiles() 51 { 52 return $this->_metadata["zip"]["entries_count"]; 53 } 54 55 /** 56 * returns the compression method that was used to generate this file 57 * 58 * @return a string representing the compression method 59 */ 60 function getCompressionMethod() 61 { 62 return $this->_metadata["zip"]["copmression_method"]; 63 } 64 65 /** 66 * returns the compression speed 67 * 68 * @return a string representing the compression speed 69 */ 70 function getCompressionSpeed() 71 { 72 return $this->_metadata["zip"]["compression_speed"]; 73 } 74 } 75 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 21:04:15 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |