ConfigInterface.php 867 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /**
  3. * PHP表单生成器
  4. *
  5. * @package FormBuilder
  6. * @author xaboy <xaboy2005@qq.com>
  7. * @version 2.0
  8. * @license MIT
  9. * @link https://github.com/xaboy/form-builder
  10. * @document http://php.form-create.com
  11. */
  12. namespace FormBuilder\Contract;
  13. interface ConfigInterface
  14. {
  15. public function info($type);
  16. public function formStyle($formStyle);
  17. public function row($row);
  18. public function submitBtn($submitBtn);
  19. public function resetBtn($resetBtn);
  20. public function injectEvent($bool);
  21. /**
  22. * @param string $componentName
  23. * @param array $config
  24. * @return $this
  25. */
  26. public function componentGlobalConfig($componentName, array $config);
  27. /**
  28. * @param array $config
  29. * @return $this
  30. */
  31. public function componentGlobalCommonConfig(array $config);
  32. public function getConfig();
  33. }