Permalink
Browse files

switch to short array syntax

  • Loading branch information...
flack committed Jul 10, 2018
1 parent f67cb20 commit c7530859683fb4fd67ecaba46a08b9db8bad8419
Showing with 5,103 additions and 7,218 deletions.
  1. +3 −7 config/midgard-portable-default.inc.php
  2. +2 −3 lib/midcom/admin/folder/config/config.inc
  3. +2 −3 lib/midcom/admin/folder/config/manifest.inc
  4. +32 −40 lib/midcom/admin/folder/config/routes.inc
  5. +32 −48 lib/midcom/admin/folder/config/schemadb_folder.inc
  6. +2 −2 lib/midcom/admin/help/config/manifest.inc
  7. +9 −12 lib/midcom/admin/help/config/routes.inc
  8. +2 −2 lib/midcom/admin/rcs/config/manifest.inc
  9. +15 −19 lib/midcom/admin/rcs/config/routes.inc
  10. +1 −1 lib/midcom/application.php
  11. +2 −2 lib/midcom/baseclasses/components/configuration.php
  12. +2 −2 lib/midcom/baseclasses/components/handler/configuration.php
  13. +2 −2 lib/midcom/baseclasses/components/interface.php
  14. +2 −2 lib/midcom/baseclasses/components/request.php
  15. +2 −2 lib/midcom/config/main.php
  16. +164 −233 lib/midcom/config/metadata_default.inc
  17. +3 −3 lib/midcom/core/manifest.php
  18. +2 −2 lib/midcom/core/nullcomponent/config/manifest.inc
  19. +1 −1 lib/midcom/helper/filesync/config/config.inc
  20. +1 −1 lib/midcom/helper/filesync/config/manifest.inc
  21. +2 −2 lib/midcom/helper/imagepopup/config/manifest.inc
  22. +43 −54 lib/midcom/helper/imagepopup/config/routes.inc
  23. +10 −10 lib/midcom/helper/imagepopup/config/schemadb.inc
  24. +1 −1 lib/midcom/helper/misc.php
  25. +40 −59 lib/midcom/helper/reflector/config/config.inc
  26. +2 −2 lib/midcom/helper/reflector/config/manifest.inc
  27. +2 −2 lib/midcom/helper/search/config/manifest.inc
  28. +12 −16 lib/midcom/helper/search/config/routes.inc
  29. +12 −13 lib/midcom/helper/search/config/schemadb_config.inc
  30. +1 −1 lib/midcom/helper/toolbar.php
  31. +10 −16 lib/midcom/services/at/config/manifest.inc
  32. +5 −5 lib/midcom/services/auth/acl.php
  33. +20 −30 lib/midgard/admin/asgard/config/config.inc
  34. +3 −4 lib/midgard/admin/asgard/config/manifest.inc
  35. +132 −165 lib/midgard/admin/asgard/config/routes.inc
  36. +4 −7 lib/midgard/admin/asgard/config/schemadb_libconfig.inc
  37. +13 −19 lib/midgard/admin/asgard/config/schemadb_permissions.inc
  38. +88 −132 lib/midgard/admin/asgard/config/schemadb_preferences.inc
  39. +12 −18 lib/midgard/admin/asgard/config/schemadb_shell.inc
  40. +4 −6 lib/midgard/admin/user/config/config.inc
  41. +7 −10 lib/midgard/admin/user/config/manifest.inc
  42. +45 −58 lib/midgard/admin/user/config/routes.inc
  43. +23 −34 lib/midgard/admin/user/config/schemadb_account.inc
  44. +63 −91 lib/midgard/admin/user/config/schemadb_group.inc
  45. +35 −53 lib/midgard/admin/user/config/schemadb_person.inc
  46. +2 −3 lib/net/nehmer/blog/config/config.inc
  47. +2 −2 lib/net/nehmer/blog/config/manifest.inc
  48. +76 −98 lib/net/nehmer/blog/config/routes.inc
  49. +171 −257 lib/net/nehmer/blog/config/schemadb_config.inc
  50. +35 −51 lib/net/nehmer/blog/config/schemadb_default.inc
  51. +1 −1 lib/net/nehmer/comments/config/config.inc
  52. +19 −28 lib/net/nehmer/comments/config/manifest.inc
  53. +45 −56 lib/net/nehmer/comments/config/routes.inc
  54. +58 −87 lib/net/nehmer/comments/config/schemadb_config.inc
  55. +23 −34 lib/net/nehmer/comments/config/schemadb_default.inc
  56. +2 −3 lib/net/nehmer/static/config/config.inc
  57. +78 −117 lib/net/nehmer/static/config/config_schemadb.inc
  58. +2 −2 lib/net/nehmer/static/config/manifest.inc
  59. +21 −28 lib/net/nehmer/static/config/routes.inc
  60. +19 −28 lib/net/nehmer/static/config/schemadb_default.inc
  61. +4 −6 lib/net/nemein/redirector/config/manifest.inc
  62. +15 −20 lib/net/nemein/redirector/config/routes.inc
  63. +78 −124 lib/net/nemein/redirector/config/schemadb_config.inc
  64. +20 −30 lib/net/nemein/redirector/config/schemadb_tinyurl.inc
  65. +9 −13 lib/net/nemein/rss/config/manifest.inc
  66. +28 −35 lib/net/nemein/rss/config/routes.inc
  67. +28 −41 lib/net/nemein/rss/config/schemadb_default.inc
  68. +14 −20 lib/net/nemein/tag/config/manifest.inc
  69. +9 −13 lib/net/nemein/wiki/config/manifest.inc
  70. +42 −56 lib/net/nemein/wiki/config/routes.inc
  71. +40 −60 lib/net/nemein/wiki/config/schemadb_default.inc
  72. +20 −30 lib/org/openpsa/calendar/config/manifest.inc
  73. +60 −76 lib/org/openpsa/calendar/config/routes.inc
  74. +30 −45 lib/org/openpsa/calendar/config/schemadb_config.inc
  75. +64 −94 lib/org/openpsa/calendar/config/schemadb_default.inc
  76. +48 −67 lib/org/openpsa/calendar/config/schemadb_filters.inc
  77. +12 −18 lib/org/openpsa/calendar/config/schemadb_resource.inc
  78. +68 −99 lib/org/openpsa/contacts/config/config.inc
  79. +10 −16 lib/org/openpsa/contacts/config/manifest.inc
  80. +89 −112 lib/org/openpsa/contacts/config/routes.inc
  81. +44 −67 lib/org/openpsa/contacts/config/schemadb_config.inc
  82. +10 −15 lib/org/openpsa/contacts/config/schemadb_default_member.inc
  83. +107 −161 lib/org/openpsa/contacts/config/schemadb_default_organization.inc
  84. +129 −193 lib/org/openpsa/contacts/config/schemadb_default_person.inc
  85. +2 −3 lib/org/openpsa/core/config/config.inc
  86. +2 −2 lib/org/openpsa/core/config/manifest.inc
  87. +16 −27 lib/org/openpsa/directmarketing/config/manifest.inc
  88. +146 −183 lib/org/openpsa/directmarketing/config/routes.inc
  89. +30 −45 lib/org/openpsa/directmarketing/config/schemadb_config.inc
  90. +46 −73 lib/org/openpsa/directmarketing/config/schemadb_default_campaign.inc
  91. +14 −21 lib/org/openpsa/directmarketing/config/schemadb_default_campaign_member.inc
  92. +94 −136 lib/org/openpsa/directmarketing/config/schemadb_default_message.inc
  93. +20 −31 lib/org/openpsa/directmarketing/config/schemadb_default_message_copy.inc
  94. +3 −4 lib/org/openpsa/documents/config/manifest.inc
  95. +42 −54 lib/org/openpsa/documents/config/routes.inc
  96. +22 −33 lib/org/openpsa/documents/config/schemadb_default_directory.inc
  97. +74 −109 lib/org/openpsa/documents/config/schemadb_default_document.inc
  98. +3 −4 lib/org/openpsa/expenses/config/manifest.inc
  99. +45 −57 lib/org/openpsa/expenses/config/routes.inc
  100. +73 −108 lib/org/openpsa/expenses/config/schemadb_default_hours.inc
  101. +6 −8 lib/org/openpsa/helpers/config/manifest.inc
  102. +4 −5 lib/org/openpsa/helpers/config/routes.inc
  103. +2 −2 lib/org/openpsa/httplib/config/manifest.inc
  104. +9 −12 lib/org/openpsa/invoices/config/manifest.inc
  105. +103 −127 lib/org/openpsa/invoices/config/routes.inc
  106. +24 −36 lib/org/openpsa/invoices/config/schemadb_config.inc
  107. +103 −153 lib/org/openpsa/invoices/config/schemadb_default.inc
  108. +53 −79 lib/org/openpsa/invoices/config/schemadb_default_billing_data.inc
  109. +10 −14 lib/org/openpsa/mail/config/config.inc
  110. +2 −2 lib/org/openpsa/mail/config/manifest.inc
  111. +8 −12 lib/org/openpsa/mail/config/schemadb_formmailer.inc
  112. +2 −2 lib/org/openpsa/mypage/config/manifest.inc
  113. +26 −33 lib/org/openpsa/mypage/config/routes.inc
  114. +3 −4 lib/org/openpsa/notifications/config/manifest.inc
  115. +1 −1 lib/org/openpsa/notifications/main.php
  116. +3 −4 lib/org/openpsa/products/config/config.inc
  117. +46 −69 lib/org/openpsa/products/config/config_schemadb.inc
  118. +9 −13 lib/org/openpsa/products/config/manifest.inc
  119. +78 −98 lib/org/openpsa/products/config/routes.inc
  120. +25 −35 lib/org/openpsa/products/config/schemadb_group_default.inc
  121. +76 −110 lib/org/openpsa/products/config/schemadb_product_default.inc
  122. +3 −4 lib/org/openpsa/projects/config/manifest.inc
  123. +75 −95 lib/org/openpsa/projects/config/routes.inc
  124. +119 −176 lib/org/openpsa/projects/config/schemadb_default_project.inc
  125. +148 −219 lib/org/openpsa/projects/config/schemadb_default_task.inc
  126. +2 −2 lib/org/openpsa/qbpager/config/manifest.inc
  127. +15 −23 lib/org/openpsa/relatedto/config/manifest.inc
  128. +48 −59 lib/org/openpsa/relatedto/config/routes.inc
  129. +14 −21 lib/org/openpsa/relatedto/config/schemadb_journalentry_default.inc
  130. +9 −13 lib/org/openpsa/reports/config/manifest.inc
  131. +55 −82 lib/org/openpsa/reports/config/schemadb_default_queryform_invoices.inc
  132. +73 −109 lib/org/openpsa/reports/config/schemadb_default_queryform_projects.inc
  133. +43 −64 lib/org/openpsa/reports/config/schemadb_default_queryform_sales.inc
  134. +11 −16 lib/org/openpsa/sales/config/manifest.inc
  135. +79 −97 lib/org/openpsa/sales/config/routes.inc
  136. +97 −145 lib/org/openpsa/sales/config/schemadb_default.inc
  137. +192 −283 lib/org/openpsa/sales/config/schemadb_deliverable_default.inc
  138. +14 −21 lib/org/openpsa/sales/config/schemadb_pdf_default.inc
  139. +2 −3 lib/org/openpsa/slideshow/config/manifest.inc
  140. +19 −25 lib/org/openpsa/slideshow/config/routes.inc
  141. +20 −22 lib/org/openpsa/user/config/config.inc
  142. +3 −4 lib/org/openpsa/user/config/manifest.inc
  143. +81 −104 lib/org/openpsa/user/config/routes.inc
  144. +15 −22 lib/org/openpsa/user/config/schemadb_account.inc
  145. +23 −34 lib/org/openpsa/user/config/schemadb_account_edit.inc
  146. +120 −180 lib/org/openpsa/user/config/schemadb_default_acl.inc
  147. +68 −100 lib/org/openpsa/user/config/schemadb_default_notifications.inc
  148. +39 −55 lib/org/openpsa/user/config/schemadb_group.inc
  149. +35 −51 lib/org/openpsa/user/config/schemadb_lostpassword.inc
  150. +48 −71 lib/org/openpsa/user/config/schemadb_person.inc
  151. +4 −6 lib/org/openpsa/widgets/config/config.inc
  152. +2 −2 lib/org/openpsa/widgets/config/manifest.inc
@@ -6,18 +6,14 @@
require_once $basedir . "/vendor/autoload.php";
$schema_dirs = array
(
$basedir . '/schemas/'
);
$schema_dirs = [$basedir . '/schemas/'];
$driver = new driver($schema_dirs, $basedir . '/var', '');
// CHANGE PARAMETERS AS REQUIRED:
$db_config = array
(
$db_config = [
'memory' => true,
'driver' => 'pdo_sqlite',
);
];
connection::initialize($driver, $db_config, true);
@@ -1,8 +1,7 @@
'schemadb' => 'file:/midcom/config/metadata_dm2_default.inc',
'schemadbs_folder' => array
(
'schemadbs_folder' => [
'default' => 'file:/midcom/admin/folder/config/schemadb_folder.inc',
),
],
//false means the parent topic's component will be suggested by default,
//otherwise enter any component name
@@ -1,9 +1,8 @@
'name' => 'midcom.admin.folder',
'icon' => 'folder-o',
'purecode' => true,
'privileges' => array
(
'privileges' => [
'topic_management' => MIDCOM_PRIVILEGE_DENY,
'template_management' => MIDCOM_PRIVILEGE_DENY,
),
],
'description' => 'Management of MidCOM site folders',
@@ -7,33 +7,30 @@
*
* Match /create/
*/
'create' => array
(
'handler' => array('midcom_admin_folder_handler_edit', 'edit'),
'fixed_args' => array ('create'),
),
'create' => [
'handler' => ['midcom_admin_folder_handler_edit', 'edit'],
'fixed_args' => ['create'],
],
/**
* Edit a topic
*
* Match /edit/
*/
'edit' => array
(
'handler' => array('midcom_admin_folder_handler_edit', 'edit'),
'fixed_args' => array ('edit'),
),
'edit' => [
'handler' => ['midcom_admin_folder_handler_edit', 'edit'],
'fixed_args' => ['edit'],
],
/**
* Delete a topic
*
* Match /delete/
*/
'delete' => array
(
'handler' => array('midcom_admin_folder_handler_delete', 'delete'),
'fixed_args' => array ('delete'),
),
'delete' => [
'handler' => ['midcom_admin_folder_handler_delete', 'delete'],
'fixed_args' => ['delete'],
],
/**
* Approval pseudo locations, which redirect back to the original page
@@ -44,22 +41,20 @@
*
* Match /metadata/approve/
*/
'approve' => array
(
'handler' => array('midcom_admin_folder_handler_approvals', 'approval'),
'fixed_args' => array ('approve'),
),
'approve' => [
'handler' => ['midcom_admin_folder_handler_approvals', 'approval'],
'fixed_args' => ['approve'],
],
/**
* Unapprove a topic object
*
* Match /metadata/unapprove/
*/
'unapprove' => array
(
'handler' => array('midcom_admin_folder_handler_approvals', 'approval'),
'fixed_args' => array ('unapprove'),
),
'unapprove' => [
'handler' => ['midcom_admin_folder_handler_approvals', 'approval'],
'fixed_args' => ['unapprove'],
],
/**
* Miscellaneous other functionalities
@@ -69,28 +64,25 @@
*
* Match /metadata/<object guid>/
*/
'metadata' => array
(
'handler' => array('midcom_admin_folder_handler_metadata', 'metadata'),
'fixed_args' => array ('metadata'),
'metadata' => [
'handler' => ['midcom_admin_folder_handler_metadata', 'metadata'],
'fixed_args' => ['metadata'],
'variable_args' => 1,
),
],
/**
* Object moving
*
* Match /move/<object guid>/
*/
'move' => array
(
'handler' => array('midcom_admin_folder_handler_move', 'move'),
'fixed_args' => array ('move'),
'move' => [
'handler' => ['midcom_admin_folder_handler_move', 'move'],
'fixed_args' => ['move'],
'variable_args' => 1,
),
],
// Match /order/
'order' => array
(
'handler' => array('midcom_admin_folder_handler_order', 'order'),
'fixed_args' => array ('order'),
),
'order' => [
'handler' => ['midcom_admin_folder_handler_order', 'order'],
'fixed_args' => ['order'],
],
@@ -1,90 +1,74 @@
'default' => array
(
'default' => [
'description' => 'topic',
'l10n_db' => 'midcom.admin.folder',
'fields' => array
(
'name' => array
(
'fields' => [
'name' => [
'title' => 'url name',
'storage' => 'name',
'type' => 'urlname',
'widget' => 'text',
),
'title' => array
(
],
'title' => [
'title' => 'title',
'storage' => 'extra',
'type' => 'text',
'widget' => 'text',
'required' => true,
),
'component' => array
(
],
'component' => [
'title' => 'component',
'storage' => 'component',
'type' => 'select',
'type_config' => array
(
'type_config' => [
'options' => midcom_admin_folder_management::list_components(midcom_core_context::get()->get_key(MIDCOM_CONTEXT_COMPONENT)),
),
],
'widget' => 'select',
),
'style' => array
(
],
'style' => [
'title' => 'style template',
'storage' => 'style',
'type' => 'select',
'type_config' => array
(
'type_config' => [
'options' => midcom_admin_folder_management::list_styles(),
),
],
'widget' => 'select',
),
'style_inherit' => array
(
],
'style_inherit' => [
'title' => 'inherit style',
'storage' => 'styleInherit',
'type' => 'boolean',
'widget' => 'checkbox',
),
'nav_order' => array
(
],
'nav_order' => [
'title' => 'nav order',
'storage' => array
(
'storage' => [
'location' => 'configuration',
'domain' => 'midcom.helper.nav',
'name' => 'navorder',
),
],
'type' => 'select',
'type_config' => array
(
'options' => array
(
'type_config' => [
'options' => [
MIDCOM_NAVORDER_DEFAULT => 'default sort order',
MIDCOM_NAVORDER_TOPICSFIRST => 'folders first',
MIDCOM_NAVORDER_ARTICLESFIRST => 'pages first',
MIDCOM_NAVORDER_SCORE => 'by score',
),
),
],
],
'widget' => 'select',
),
'page_class' => array
(
],
'page_class' => [
'title' => 'folder page class',
'storage' => array
(
'storage' => [
'location' => 'configuration',
'domain' => 'midcom.services.metadata',
'name' => 'page_class',
),
],
'type' => 'text',
'widget' => 'text',
'write_privilege' => array
(
'write_privilege' => [
'privilege' => 'midcom.admin.folder:template_management',
),
),
),
),
],
],
],
],
@@ -2,5 +2,5 @@
'icon' => 'question-circle',
'description' => 'On-site help displayer',
'purecode' => true,
'privileges' => array(),
'class_mapping' => array(),
'privileges' => [],
'class_mapping' => [],
@@ -1,17 +1,14 @@
// Handle / MidCOM help system welcome screen
'welcome' => array
(
'handler' => array('midcom_admin_help_help', 'welcome'),
),
'welcome' => [
'handler' => ['midcom_admin_help_help', 'welcome'],
],
// Handle /<component> component documentation ToC
'component' => array
(
'handler' => array('midcom_admin_help_help', 'component'),
'component' => [
'handler' => ['midcom_admin_help_help', 'component'],
'variable_args' => 1,
),
],
// Handle /<component>/<help id> display help page from a component
'help' => array
(
'handler' => array('midcom_admin_help_help', 'help'),
'help' => [
'handler' => ['midcom_admin_help_help', 'help'],
'variable_args' => 2,
),
],
@@ -2,5 +2,5 @@
'icon' => 'history',
'description' => 'Front and backend for a versioning library',
'purecode' => true,
'privileges' => array(),
'class_mapping' => array(),
'privileges' => [],
'class_mapping' => [],
@@ -1,24 +1,20 @@
'history' => Array
(
'handler' => array('midcom_admin_rcs_handler_rcs', 'history'),
'history' => [
'handler' => ['midcom_admin_rcs_handler_rcs', 'history'],
'variable_args' => 1,
),
],
'preview' => Array
(
'fixed_args' => array('preview'),
'handler' => array('midcom_admin_rcs_handler_rcs', 'preview'),
'preview' => [
'fixed_args' => ['preview'],
'handler' => ['midcom_admin_rcs_handler_rcs', 'preview'],
'variable_args' => 2,
),
'diff' => Array
(
'fixed_args' => array('diff'),
'handler' => array('midcom_admin_rcs_handler_rcs', 'diff'),
],
'diff' => [
'fixed_args' => ['diff'],
'handler' => ['midcom_admin_rcs_handler_rcs', 'diff'],
'variable_args' => 3,
),
'restore' => Array
(
'fixed_args' => array('restore'),
'handler' => array('midcom_admin_rcs_handler_rcs', 'restore'),
],
'restore' => [
'fixed_args' => ['restore'],
'handler' => ['midcom_admin_rcs_handler_rcs', 'restore'],
'variable_args' => 2,
),
],
@@ -174,7 +174,7 @@ public function codeinit()
* Results of dynamic_loads are cached, by default with the system cache strategy
* but you can specify separate cache strategy for the DL in the config array like so
* <code>
* midcom::get()->dynamic_load("/midcom-substyle-{$substyle}/{$newsticker}", array('cache_module_content_caching_strategy' => 'public'))
* midcom::get()->dynamic_load("/midcom-substyle-{$substyle}/{$newsticker}", ['cache_module_content_caching_strategy' => 'public'])
* </code>
*
* You can use only less specific strategy than the global strategy, ie basically you're limited to 'memberships' and 'public' as
Oops, something went wrong.

0 comments on commit c753085

Please sign in to comment.