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 (c) 2004, 2009 David Grudl (http://davidgrudl.com)
  7. 7:  *
  8. 8:  * This source file is subject to the "Nette license" that is bundled
  9. 9:  * with this package in the file license.txt.
  10. 10:  *
  11. 11:  * For more information please see http://nettephp.com
  12. 12:  *
  13. 13:  * @copyright  Copyright (c) 2004, 2009 David Grudl
  14. 14:  * @license    http://nettephp.com/license  Nette license
  15. 15:  * @link       http://nettephp.com
  16. 16:  * @category   Nette
  17. 17:  * @package    Nette\Config
  18. 18:  */
  19. 19:  
  20. 20:  
  21. 21:  
  22. 22: /**
  23. 23:  * Adapter for reading and writing configuration files.
  24. 24:  *
  25. 25:  * @author     David Grudl
  26. 26:  * @copyright  Copyright (c) 2004, 2009 David Grudl
  27. 27:  * @package    Nette\Config
  28. 28:  */
  29. 29: interface IConfigAdapter
  30. 30: {
  31. 31:  
  32. 32:     /**
  33. 33:      * Reads configuration from file.
  34. 34:      * @param  string  file name
  35. 35:      * @param  string  section to load
  36. 36:      * @return array 
  37. 37:      */
  38. 38:     static function load($file$section NULL);
  39. 39:  
  40. 40:     /**
  41. 41:      * Writes configuration to file.
  42. 42:      * @param  Config to save
  43. 43:      * @param  string  file
  44. 44:      * @param  string  section name
  45. 45:      * @return void 
  46. 46:      */
  47. 47:     static function save($config$file$section NULL);
  48. 48:  
  49. 49: }