BxDevFormsField.php 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. <?php defined('BX_DOL') or die('hack attempt');
  2. /**
  3. * Copyright (c) BoonEx Pty Limited - http://www.boonex.com/
  4. * CC-BY License - http://creativecommons.org/licenses/by/3.0/
  5. *
  6. * @defgroup Developer Developer
  7. * @ingroup DolphinModules
  8. *
  9. * @{
  10. */
  11. bx_import('BxDolModule');
  12. bx_import('BxTemplStudioFormsField');
  13. require_once('BxDevFunctions.php');
  14. class BxDevFormsField extends BxTemplStudioFormsField {
  15. function __construct($aParams = array(), $aField = array()) {
  16. parent::__construct($aParams, $aField);
  17. }
  18. }
  19. class BxDevFormsFieldBlockHeader extends BxTemplStudioFormsFieldBlockHeader {
  20. function __construct($aParams = array(), $aField = array()) {
  21. parent::__construct($aParams, $aField);
  22. BxDevFunctions::changeFormField($this->aParams, $this->aForm['inputs'], $this->oDb);
  23. }
  24. }
  25. class BxDevFormsFieldValue extends BxTemplStudioFormsFieldValue {
  26. function __construct($aParams = array(), $aField = array()) {
  27. parent::__construct($aParams, $aField);
  28. BxDevFunctions::changeFormField($this->aParams, $this->aForm['inputs'], $this->oDb);
  29. }
  30. }
  31. class BxDevFormsFieldText extends BxTemplStudioFormsFieldText {
  32. function __construct($aParams = array(), $aField = array()) {
  33. parent::__construct($aParams, $aField);
  34. BxDevFunctions::changeFormField($this->aParams, $this->aForm['inputs'], $this->oDb);
  35. }
  36. }
  37. class BxDevFormsFieldPassword extends BxTemplStudioFormsFieldPassword {
  38. function __construct($aParams = array(), $aField = array()) {
  39. parent::__construct($aParams, $aField);
  40. BxDevFunctions::changeFormField($this->aParams, $this->aForm['inputs'], $this->oDb);
  41. }
  42. }
  43. class BxDevFormsFieldTextarea extends BxTemplStudioFormsFieldTextarea {
  44. function __construct($aParams = array(), $aField = array()) {
  45. parent::__construct($aParams, $aField);
  46. BxDevFunctions::changeFormField($this->aParams, $this->aForm['inputs'], $this->oDb);
  47. }
  48. }
  49. class BxDevFormsFieldNumber extends BxTemplStudioFormsFieldNumber {
  50. function __construct($aParams = array(), $aField = array()) {
  51. parent::__construct($aParams, $aField);
  52. BxDevFunctions::changeFormField($this->aParams, $this->aForm['inputs'], $this->oDb);
  53. }
  54. }
  55. class BxDevFormsFieldDatepicker extends BxTemplStudioFormsFieldDatepicker {
  56. function __construct($aParams = array(), $aField = array()) {
  57. parent::__construct($aParams, $aField);
  58. BxDevFunctions::changeFormField($this->aParams, $this->aForm['inputs'], $this->oDb);
  59. }
  60. }
  61. class BxDevFormsFieldDatetime extends BxTemplStudioFormsFieldDatetime {
  62. function __construct($aParams = array(), $aField = array()) {
  63. parent::__construct($aParams, $aField);
  64. BxDevFunctions::changeFormField($this->aParams, $this->aForm['inputs'], $this->oDb);
  65. }
  66. }
  67. class BxDevFormsFieldCheckbox extends BxTemplStudioFormsFieldCheckbox {
  68. function __construct($aParams = array(), $aField = array()) {
  69. parent::__construct($aParams, $aField);
  70. BxDevFunctions::changeFormField($this->aParams, $this->aForm['inputs'], $this->oDb);
  71. $this->aForm['inputs']['value']['type'] = 'text';
  72. }
  73. }
  74. class BxDevFormsFieldSwitcher extends BxTemplStudioFormsFieldSwitcher {
  75. function __construct($aParams = array(), $aField = array()) {
  76. parent::__construct($aParams, $aField);
  77. BxDevFunctions::changeFormField($this->aParams, $this->aForm['inputs'], $this->oDb);
  78. $this->aForm['inputs']['value']['type'] = 'text';
  79. }
  80. }
  81. class BxDevFormsFieldFile extends BxTemplStudioFormsFieldFile {
  82. function __construct($aParams = array(), $aField = array()) {
  83. parent::__construct($aParams, $aField);
  84. BxDevFunctions::changeFormField($this->aParams, $this->aForm['inputs'], $this->oDb);
  85. }
  86. }
  87. class BxDevFormsFieldSlider extends BxTemplStudioFormsFieldSlider {
  88. function __construct($aParams = array(), $aField = array()) {
  89. parent::__construct($aParams, $aField);
  90. BxDevFunctions::changeFormField($this->aParams, $this->aForm['inputs'], $this->oDb);
  91. }
  92. }
  93. class BxDevFormsFieldDoublerange extends BxTemplStudioFormsFieldDoublerange {
  94. function __construct($aParams = array(), $aField = array()) {
  95. parent::__construct($aParams, $aField);
  96. BxDevFunctions::changeFormField($this->aParams, $this->aForm['inputs'], $this->oDb);
  97. }
  98. }
  99. class BxDevFormsFieldHidden extends BxTemplStudioFormsFieldHidden {
  100. function __construct($aParams = array(), $aField = array()) {
  101. parent::__construct($aParams, $aField);
  102. BxDevFunctions::changeFormField($this->aParams, $this->aForm['inputs'], $this->oDb);
  103. }
  104. }
  105. class BxDevFormsFieldButton extends BxTemplStudioFormsFieldButton {
  106. function __construct($aParams = array(), $aField = array()) {
  107. parent::__construct($aParams, $aField);
  108. BxDevFunctions::changeFormField($this->aParams, $this->aForm['inputs'], $this->oDb);
  109. }
  110. }
  111. class BxDevFormsFieldReset extends BxTemplStudioFormsFieldReset {
  112. function __construct($aParams = array(), $aField = array()) {
  113. parent::__construct($aParams, $aField);
  114. BxDevFunctions::changeFormField($this->aParams, $this->aForm['inputs'], $this->oDb);
  115. }
  116. }
  117. class BxDevFormsFieldSubmit extends BxTemplStudioFormsFieldSubmit {
  118. function __construct($aParams = array(), $aField = array()) {
  119. parent::__construct($aParams, $aField);
  120. BxDevFunctions::changeFormField($this->aParams, $this->aForm['inputs'], $this->oDb);
  121. }
  122. }
  123. class BxDevFormsFieldImage extends BxTemplStudioFormsFieldImage {
  124. function __construct($aParams = array(), $aField = array()) {
  125. parent::__construct($aParams, $aField);
  126. BxDevFunctions::changeFormField($this->aParams, $this->aForm['inputs'], $this->oDb);
  127. }
  128. }
  129. class BxDevFormsFieldSelect extends BxTemplStudioFormsFieldSelect {
  130. function __construct($aParams = array(), $aField = array()) {
  131. parent::__construct($aParams, $aField);
  132. BxDevFunctions::changeFormField($this->aParams, $this->aForm['inputs'], $this->oDb);
  133. }
  134. }
  135. class BxDevFormsFieldSelectMultiple extends BxTemplStudioFormsFieldSelectMultiple {
  136. function __construct($aParams = array(), $aField = array()) {
  137. parent::__construct($aParams, $aField);
  138. BxDevFunctions::changeFormField($this->aParams, $this->aForm['inputs'], $this->oDb);
  139. }
  140. }
  141. class BxDevFormsFieldCheckboxSet extends BxTemplStudioFormsFieldCheckboxSet {
  142. function __construct($aParams = array(), $aField = array()) {
  143. parent::__construct($aParams, $aField);
  144. BxDevFunctions::changeFormField($this->aParams, $this->aForm['inputs'], $this->oDb);
  145. }
  146. }
  147. class BxDevFormsFieldRadioSet extends BxTemplStudioFormsFieldRadioSet {
  148. function __construct($aParams = array(), $aField = array()) {
  149. parent::__construct($aParams, $aField);
  150. BxDevFunctions::changeFormField($this->aParams, $this->aForm['inputs'], $this->oDb);
  151. }
  152. }
  153. class BxDevFormsFieldCustom extends BxTemplStudioFormsFieldCustom {
  154. function __construct($aParams = array(), $aField = array()) {
  155. parent::__construct($aParams, $aField);
  156. BxDevFunctions::changeFormField($this->aParams, $this->aForm['inputs'], $this->oDb);
  157. }
  158. }
  159. class BxDevFormsFieldInputSet extends BxTemplStudioFormsFieldInputSet {
  160. function __construct($aParams = array(), $aField = array()) {
  161. parent::__construct($aParams, $aField);
  162. BxDevFunctions::changeFormField($this->aParams, $this->aForm['inputs'], $this->oDb);
  163. }
  164. }
  165. class BxDevFormsFieldCaptcha extends BxTemplStudioFormsFieldCaptcha {
  166. function __construct($aParams = array(), $aField = array()) {
  167. parent::__construct($aParams, $aField);
  168. BxDevFunctions::changeFormField($this->aParams, $this->aForm['inputs'], $this->oDb);
  169. }
  170. }
  171. /** @} */