Source for file IConfigAdapter.php

Documentation is available at IConfigAdapter.php

  1. 1: <?php
  2. 2:  
  3. 3: /**
  4. 4:  * Nette Framework
  5. 5:  *
  6. 6:  * @copyright  Copyright (c) 2004, 2010 David Grudl
  7. 7:  * @license    http://nettephp.com/license  Nette license
  8. 8:  * @link       http://nettephp.com
  9. 9:  * @category   Nette
  10. 10:  * @package    Nette\Config
  11. 11:  */
  12. 12:  
  13. 13:  
  14. 14:  
  15. 15: /**
  16. 16:  * Adapter for reading and writing configuration files.
  17. 17:  *
  18. 18:  * @copyright  Copyright (c) 2004, 2010 David Grudl
  19. 19:  * @package    Nette\Config
  20. 20:  */
  21. 21: interface IConfigAdapter
  22. 22: {
  23. 23:  
  24. 24:     /**
  25. 25:      * Reads configuration from file.
  26. 26:      * @param  string  file name
  27. 27:      * @param  string  section to load
  28. 28:      * @return array 
  29. 29:      */
  30. 30:     static function load($file$section NULL);
  31. 31:  
  32. 32:     /**
  33. 33:      * Writes configuration to file.
  34. 34:      * @param  Config to save
  35. 35:      * @param  string  file
  36. 36:      * @param  string  section name
  37. 37:      * @return void 
  38. 38:      */
  39. 39:     static function save($config$file$section NULL);
  40. 40:  
  41. 41: }