v1.php 1009 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * The thinkQuestion widget class file of zin module of ZenTaoPMS.
  4. *
  5. * @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.zentao.net)
  6. * @license ZPL(https://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
  7. * @author Zemei Wang<wangzemei@easycorp.ltd>
  8. * @package zin
  9. * @link http://www.zentao.net
  10. */
  11. namespace zin;
  12. requireWg('thinkStepBase');
  13. /**
  14. * 思引师问题的基础节点。
  15. * thinmory basic node content.
  16. */
  17. class thinkQuestion extends thinkStepBase
  18. {
  19. /**
  20. * @var mixed[]
  21. */
  22. protected static $defineProps = array(
  23. 'required?: int=1', // 是否必填
  24. 'questionType?: string', // 问题类型
  25. 'value?: string', // 问题的答案
  26. 'isResult?: bool=false', // 是否是结果页
  27. );
  28. /**
  29. * @var mixed[]
  30. */
  31. protected static $defaultProps = array
  32. (
  33. 'type' => 'question'
  34. );
  35. }