app_config.php 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <?php
  2. //application details
  3. $apps[$x]['name'] = "School Bell";
  4. $apps[$x]['uuid'] = "aadeda26-f3b5-4114-96f4-a7591f069fdf";
  5. $apps[$x]['category'] = "Switch";
  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-us'] = "Provide an ability to set up bells scheduler for schools";
  11. $apps[$x]['description']['es-cl'] = "";
  12. $apps[$x]['description']['de-de'] = "";
  13. $apps[$x]['description']['de-ch'] = "";
  14. $apps[$x]['description']['de-at'] = "";
  15. $apps[$x]['description']['fr-fr'] = "";
  16. $apps[$x]['description']['fr-ca'] = "";
  17. $apps[$x]['description']['fr-ch'] = "";
  18. $apps[$x]['description']['pt-pt'] = "";
  19. $apps[$x]['description']['pt-br'] = "";
  20. //permission details
  21. $y = 0;
  22. $apps[$x]['permissions'][$y]['name'] = "school_bell_view";
  23. $apps[$x]['permissions'][$y]['menu']['uuid'] = "fd29e39c-c936-f5fc-8e2b-611681b266b5";
  24. $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  25. $apps[$x]['permissions'][$y]['groups'][] = "admin";
  26. $y += 1;
  27. $apps[$x]['permissions'][$y]['name'] = "school_bell_add";
  28. $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  29. $apps[$x]['permissions'][$y]['groups'][] = "admin";
  30. $y += 1;
  31. $apps[$x]['permissions'][$y]['name'] = "school_bell_edit";
  32. $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  33. $apps[$x]['permissions'][$y]['groups'][] = "admin";
  34. $y += 1;
  35. $apps[$x]['permissions'][$y]['name'] = "school_bell_delete";
  36. $apps[$x]['permissions'][$y]['groups'][] = "superadmin";
  37. $apps[$x]['permissions'][$y]['groups'][] = "admin";
  38. $y += 1;
  39. //schema details
  40. $y = 0; //table array index
  41. $z = 0; //field array index
  42. $apps[$x]['db'][$y]['table']['name'] = "v_school_bells";
  43. $apps[$x]['db'][$y]['table']['parent'] = "";
  44. $apps[$x]['db'][$y]['fields'][$z]['name'] = "domain_uuid";
  45. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
  46. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
  47. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
  48. $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign";
  49. $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = "v_domains";
  50. $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "domain_uuid";
  51. $z += 1;
  52. $apps[$x]['db'][$y]['fields'][$z]['name'] = "school_bell_uuid";
  53. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
  54. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
  55. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
  56. $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "primary";
  57. $z += 1;
  58. $apps[$x]['db'][$y]['fields'][$z]['name'] = "school_bell_name";
  59. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  60. $z += 1;
  61. //$apps[$x]['db'][$y]['fields'][$z]['name'] = "school_bell_function_code";
  62. //$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  63. //$z += 1;
  64. $apps[$x]['db'][$y]['fields'][$z]['name'] = "school_bell_leg_a_type";
  65. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  66. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "By now only loopback";
  67. $z += 1;
  68. $apps[$x]['db'][$y]['fields'][$z]['name'] = "school_bell_leg_a_data";
  69. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  70. $z += 1;
  71. $apps[$x]['db'][$y]['fields'][$z]['name'] = "school_bell_leg_b_type";
  72. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  73. $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "By now - recording";
  74. $z += 1;
  75. $apps[$x]['db'][$y]['fields'][$z]['name'] = "school_bell_leg_b_data";
  76. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  77. $z += 1;
  78. $apps[$x]['db'][$y]['fields'][$z]['name'] = "school_bell_ring_timeout";
  79. $apps[$x]['db'][$y]['fields'][$z]['type'] = "numeric";
  80. $z += 1;
  81. // Next will go cron-type of description. But limited to only 1 selection
  82. $apps[$x]['db'][$y]['fields'][$z]['name'] = "school_bell_min";
  83. $apps[$x]['db'][$y]['fields'][$z]['type'] = "numeric";
  84. $z += 1;
  85. $apps[$x]['db'][$y]['fields'][$z]['name'] = "school_bell_hour";
  86. $apps[$x]['db'][$y]['fields'][$z]['type'] = "numeric";
  87. $z += 1;
  88. $apps[$x]['db'][$y]['fields'][$z]['name'] = "school_bell_dom";
  89. $apps[$x]['db'][$y]['fields'][$z]['type'] = "numeric";
  90. $z += 1;
  91. $apps[$x]['db'][$y]['fields'][$z]['name'] = "school_bell_mon";
  92. $apps[$x]['db'][$y]['fields'][$z]['type'] = "numeric";
  93. $z += 1;
  94. $apps[$x]['db'][$y]['fields'][$z]['name'] = "school_bell_dow";
  95. $apps[$x]['db'][$y]['fields'][$z]['type'] = "numeric";
  96. $z += 1;
  97. $apps[$x]['db'][$y]['fields'][$z]['name'] = "school_bell_timezone";
  98. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  99. $z += 1;
  100. $apps[$x]['db'][$y]['fields'][$z]['name'] = "school_bell_enabled";
  101. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  102. $z += 1;
  103. $apps[$x]['db'][$y]['fields'][$z]['name'] = "school_bell_description";
  104. $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
  105. ?>