configure.php 722 B

12345678910111213141516171819202122
  1. <?php
  2. # Assume we're doing things interactively if we're passing in args
  3. if( !empty( $argv[1] ) ) {
  4. exit(0);
  5. }
  6. class configure {
  7. # INPUT:
  8. # Param 1: Config file to read. Throws on failure to read.
  9. # Param 2: undef or ARRAY of keys you wanna fetch. undef/invalid assumes we'll be wanting all of them.
  10. # OUTPUT: ARRAY of the requested KEY => VALUE pairs.
  11. public function get_config_values() {
  12. return;
  13. }
  14. # INPUT:
  15. # Param 1: Config file to write. Throws if it fails to write.
  16. # Param 1: ARRAY of KEY => VALUE pairs you wanna set. Throws on invalid input.
  17. # OUTPUT: BOOL regarding success/failure.
  18. public function set_config_values() {
  19. return;
  20. }
  21. }
  22. ?>