app_config.php 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php
  2. //application details
  3. $apps[$x]['name'] = 'Default Settings';
  4. $apps[$x]['guid'] = '2c2453c0-1bea-4475-9f44-4d969650de09';
  5. $apps[$x]['category'] = 'Core';
  6. $apps[$x]['subcategory'] = '';
  7. $apps[$x]['version'] = '';
  8. $apps[$x]['license'] = 'Mozilla Public License 1.1';
  9. $apps[$x]['url'] = 'http://www.fusionpbx.com';
  10. $apps[$x]['description']['en'] = 'Default settings that apply to all domains.';
  11. //menu details
  12. $apps[$x]['menu'][0]['title']['en'] = 'Default Settings';
  13. $apps[$x]['menu'][0]['uuid'] = '834b2739-9e99-4345-9b0b-7ec3ca332b67';
  14. $apps[$x]['menu'][0]['parent_uuid'] = '594d99c5-6128-9c88-ca35-4b33392cec0f';
  15. $apps[$x]['menu'][0]['category'] = 'internal';
  16. $apps[$x]['menu'][0]['path'] = '/core/default_settings/default_settings.php';
  17. $apps[$x]['menu'][0]['groups'][] = 'superadmin';
  18. //permission details
  19. $y = 0;
  20. $apps[$x]['permissions'][$y]['name'] = 'default_setting_add';
  21. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  22. $y++;
  23. $apps[$x]['permissions'][$y]['name'] = 'default_setting_edit';
  24. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  25. $y++;
  26. $apps[$x]['permissions'][$y]['name'] = 'default_setting_delete';
  27. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  28. $y++;
  29. //schema details
  30. $y = 0; //table array index
  31. $z = 0; //field array index
  32. $apps[$x]['db'][$y]['table'] = 'v_default_settings';
  33. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'default_setting_uuid';
  34. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
  35. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
  36. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
  37. $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'primary';
  38. $z++;
  39. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'default_setting_category';
  40. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  41. $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'Enter the category.';
  42. $z++;
  43. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'default_setting_subcategory';
  44. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  45. $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'Enter the subcategory.';
  46. $z++;
  47. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'default_setting_name';
  48. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  49. $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'Enter the name.';
  50. $z++;
  51. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'default_setting_value';
  52. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  53. $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = 'Enter the value.';
  54. $z++;
  55. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'default_setting_enabled';
  56. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  57. $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = '';
  58. $z++;
  59. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'default_setting_description';
  60. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  61. $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = '';
  62. ?>