Writer.php 744 B

123456789101112131415161718192021222324252627
  1. <?php defined('SYSPATH') OR die('No direct script access.');
  2. /**
  3. * Interface for config writers
  4. *
  5. * Specifies the methods that a config writer must implement
  6. *
  7. * @package Kohana
  8. * @author Kohana Team
  9. * @copyright (c) 2008-2012 Kohana Team
  10. * @license http://kohanaphp.com/license
  11. */
  12. interface Kohana_Config_Writer extends Kohana_Config_Source
  13. {
  14. /**
  15. * Writes the passed config for $group
  16. *
  17. * Returns chainable instance on success or throws
  18. * Kohana_Config_Exception on failure
  19. *
  20. * @param string $group The config group
  21. * @param string $key The config key to write to
  22. * @param array $config The configuration to write
  23. * @return boolean
  24. */
  25. public function write($group, $key, $config);
  26. }