1: <?php
2: /**
3: * Interface for the Compression Objects
4: *
5: * @package Compression
6: * @filesource iCompression.php
7: *
8: * @author Cyril Nicodème
9: * @version 0.1
10: *
11: * @since 15/07/2008
12: *
13: * @license GNU/GPL
14: */
15: interface iCompression
16: {
17: /**
18: * Constructor
19: * Used to check if the extensions exists
20: *
21: * @throws Exception
22: */
23: public function __construct ();
24:
25: /**
26: * Compress the given value to the specific compression
27: *
28: * @param String $sValue
29: * @param String $iLevel (Optionnal) : Between 0 and 9
30: *
31: * @return String
32: *
33: * @throws Exception
34: */
35: public function compress ($sValue, $iLevel = null);
36:
37: /**
38: * Decompress the given value with the specific compression
39: *
40: * @param String $sValue
41: *
42: * @return String
43: *
44: * @throws Exception
45: */
46: public function decompress ($sValue);
47: }
48: