BxBaseStudioOptionsApi.php 819 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php defined('BX_DOL') or die('hack attempt');
  2. /**
  3. * Copyright (c) UNA, Inc - https://una.io
  4. * MIT License - https://opensource.org/licenses/MIT
  5. *
  6. * @defgroup UnaView UNA Studio Representation classes
  7. * @ingroup UnaStudio
  8. * @{
  9. */
  10. class BxBaseStudioOptionsApi extends BxDolStudioOptionsApi
  11. {
  12. public function __construct($sType = '', $mixedCategory = '', $sMix = '')
  13. {
  14. parent::__construct($sType, $mixedCategory, $sMix);
  15. }
  16. protected function field($aItem, $aItems2Mixes)
  17. {
  18. $aField = parent::field($aItem, $aItems2Mixes);
  19. switch($aItem['name']) {
  20. case 'sys_api_config':
  21. $aField = array_merge($aField, [
  22. 'code' => 1
  23. ]);
  24. break;
  25. }
  26. return $aField;
  27. }
  28. }
  29. /** @} */