Index: trunk/extensions/SemanticMediaWiki/includes/SMW_Setup.php |
— | — | @@ -72,10 +72,12 @@ |
73 | 73 | $wgAutoloadClasses['SMWDataValueFactory'] = $smwgIP . 'includes/SMW_DataValueFactory.php'; |
74 | 74 | $wgAutoloadClasses['SMWDataValue'] = $smwgIP . 'includes/SMW_DataValue.php'; |
75 | 75 | |
76 | | - $wgAutoloadClasses['SMWOrderedListPage'] = $smwgIP . 'includes/articlepages/SMW_OrderedListPage.php'; |
77 | | - $wgAutoloadClasses['SMWTypePage'] = $smwgIP . 'includes/articlepages/SMW_TypePage.php'; |
78 | | - $wgAutoloadClasses['SMWPropertyPage'] = $smwgIP . 'includes/articlepages/SMW_PropertyPage.php'; |
79 | | - $wgAutoloadClasses['SMWConceptPage'] = $smwgIP . 'includes/articlepages/SMW_ConceptPage.php'; |
| 76 | + // Article pages |
| 77 | + $apDir = $smwgIP . 'includes/articlepages/'; |
| 78 | + $wgAutoloadClasses['SMWOrderedListPage'] = $apDir . 'SMW_OrderedListPage.php'; |
| 79 | + $wgAutoloadClasses['SMWTypePage'] = $apDir . 'SMW_TypePage.php'; |
| 80 | + $wgAutoloadClasses['SMWPropertyPage'] = $apDir . 'SMW_PropertyPage.php'; |
| 81 | + $wgAutoloadClasses['SMWConceptPage'] = $apDir . 'SMW_ConceptPage.php'; |
80 | 82 | |
81 | 83 | // Printers |
82 | 84 | $qpDir = $smwgIP . 'includes/queryprinters/'; |
— | — | @@ -110,33 +112,38 @@ |
111 | 113 | $wgAutoloadClasses['SMWImportValue'] = $dvDir . 'SMW_DV_Import.php'; |
112 | 114 | |
113 | 115 | // Export |
114 | | - $wgAutoloadClasses['SMWExporter'] = $smwgIP . 'includes/export/SMW_Exporter.php'; |
115 | | - $wgAutoloadClasses['SMWExpData'] = $smwgIP . 'includes/export/SMW_Exp_Data.php'; |
116 | | - $wgAutoloadClasses['SMWExpElement'] = $smwgIP . 'includes/export/SMW_Exp_Element.php'; |
117 | | - $wgAutoloadClasses['SMWExpLiteral'] = $smwgIP . 'includes/export/SMW_Exp_Element.php'; |
118 | | - $wgAutoloadClasses['SMWExpResource'] = $smwgIP . 'includes/export/SMW_Exp_Element.php'; |
| 116 | + $expDir = $smwgIP . 'includes/export/'; |
| 117 | + $wgAutoloadClasses['SMWExporter'] = $expDir . 'SMW_Exporter.php'; |
| 118 | + $wgAutoloadClasses['SMWExpData'] = $expDir . 'SMW_Exp_Data.php'; |
| 119 | + $wgAutoloadClasses['SMWExpElement'] = $expDir . 'SMW_Exp_Element.php'; |
| 120 | + $wgAutoloadClasses['SMWExpLiteral'] = $expDir . 'SMW_Exp_Element.php'; |
| 121 | + $wgAutoloadClasses['SMWExpResource'] = $expDir . 'SMW_Exp_Element.php'; |
| 122 | + |
119 | 123 | // Stores & queries |
120 | 124 | $wgAutoloadClasses['SMWQueryProcessor'] = $smwgIP . 'includes/SMW_QueryProcessor.php'; |
121 | 125 | $wgAutoloadClasses['SMWQueryParser'] = $smwgIP . 'includes/SMW_QueryParser.php'; |
122 | | - $wgAutoloadClasses['SMWQuery'] = $smwgIP . 'includes/storage/SMW_Query.php'; |
123 | | - $wgAutoloadClasses['SMWQueryResult'] = $smwgIP . 'includes/storage/SMW_QueryResult.php'; |
124 | | - $wgAutoloadClasses['SMWStore'] = $smwgIP . 'includes/storage/SMW_Store.php'; |
125 | | - $wgAutoloadClasses['SMWStringCondition'] = $smwgIP . 'includes/storage/SMW_Store.php'; |
126 | | - $wgAutoloadClasses['SMWRequestOptions'] = $smwgIP . 'includes/storage/SMW_Store.php'; |
127 | | - $wgAutoloadClasses['SMWPrintRequest'] = $smwgIP . 'includes/storage/SMW_PrintRequest.php'; |
128 | | - $wgAutoloadClasses['SMWThingDescription'] = $smwgIP . 'includes/storage/SMW_Description.php'; |
129 | | - $wgAutoloadClasses['SMWClassDescription'] = $smwgIP . 'includes/storage/SMW_Description.php'; |
130 | | - $wgAutoloadClasses['SMWConceptDescription'] = $smwgIP . 'includes/storage/SMW_Description.php'; |
131 | | - $wgAutoloadClasses['SMWNamespaceDescription'] = $smwgIP . 'includes/storage/SMW_Description.php'; |
132 | | - $wgAutoloadClasses['SMWValueDescription'] = $smwgIP . 'includes/storage/SMW_Description.php'; |
133 | | - $wgAutoloadClasses['SMWConjunction'] = $smwgIP . 'includes/storage/SMW_Description.php'; |
134 | | - $wgAutoloadClasses['SMWDisjunction'] = $smwgIP . 'includes/storage/SMW_Description.php'; |
135 | | - $wgAutoloadClasses['SMWSomeProperty'] = $smwgIP . 'includes/storage/SMW_Description.php'; |
136 | 126 | $wgAutoloadClasses['SMWRecordDescription'] = $smwgIP . 'includes/SMW_Record_Descriptions.php'; |
137 | 127 | $wgAutoloadClasses['SMWRecordFieldDescription'] = $smwgIP . 'includes/SMW_Record_Descriptions.php'; |
138 | | - $wgAutoloadClasses['SMWSQLStore2'] = $smwgIP . 'includes/storage/SMW_SQLStore2.php'; |
139 | | - $wgAutoloadClasses['SMWSQLStore2Table'] = $smwgIP . 'includes/storage/SMW_SQLStore2Table.php'; |
140 | | - $wgAutoloadClasses['SMWSQLHelpers'] = $smwgIP . 'includes/storage/SMW_SQLHelpers.php'; |
| 128 | + |
| 129 | + $stoDir = $smwgIP . 'includes/storage/'; |
| 130 | + $wgAutoloadClasses['SMWQuery'] = $stoDir . 'SMW_Query.php'; |
| 131 | + $wgAutoloadClasses['SMWQueryResult'] = $stoDir . 'SMW_QueryResult.php'; |
| 132 | + $wgAutoloadClasses['SMWStore'] = $stoDir . 'SMW_Store.php'; |
| 133 | + $wgAutoloadClasses['SMWStringCondition'] = $stoDir . 'SMW_Store.php'; |
| 134 | + $wgAutoloadClasses['SMWRequestOptions'] = $stoDir . 'SMW_Store.php'; |
| 135 | + $wgAutoloadClasses['SMWPrintRequest'] = $stoDir . 'SMW_PrintRequest.php'; |
| 136 | + $wgAutoloadClasses['SMWThingDescription'] = $stoDir . 'SMW_Description.php'; |
| 137 | + $wgAutoloadClasses['SMWClassDescription'] = $stoDir . 'SMW_Description.php'; |
| 138 | + $wgAutoloadClasses['SMWConceptDescription'] = $stoDir . 'SMW_Description.php'; |
| 139 | + $wgAutoloadClasses['SMWNamespaceDescription'] = $stoDir . 'SMW_Description.php'; |
| 140 | + $wgAutoloadClasses['SMWValueDescription'] = $stoDir . 'SMW_Description.php'; |
| 141 | + $wgAutoloadClasses['SMWConjunction'] = $stoDir . 'SMW_Description.php'; |
| 142 | + $wgAutoloadClasses['SMWDisjunction'] = $stoDir . 'SMW_Description.php'; |
| 143 | + $wgAutoloadClasses['SMWSomeProperty'] = $stoDir . 'SMW_Description.php'; |
| 144 | + $wgAutoloadClasses['SMWSQLStore2'] = $stoDir . 'SMW_SQLStore2.php'; |
| 145 | + $wgAutoloadClasses['SMWSQLStore2Table'] = $stoDir . 'SMW_SQLStore2Table.php'; |
| 146 | + $wgAutoloadClasses['SMWSQLHelpers'] = $stoDir . 'SMW_SQLHelpers.php'; |
| 147 | + |
141 | 148 | // Do not autoload RAPStore, since some special pages load all autoloaded classes, which causes |
142 | 149 | // troubles with RAP store if RAP is not installed (require_once fails). |
143 | 150 | // $wgAutoloadClasses['SMWRAPStore'] = $smwgIP . 'includes/storage/SMW_RAPStore.php'; |