Index: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2.php |
— | — | @@ -65,7 +65,9 @@ |
66 | 66 | '_REDI' => 15, |
67 | 67 | '_SUBP' => 17, |
68 | 68 | '_SUBC' => 18, |
69 | | - '_CONC' => 19 |
| 69 | + '_CONC' => 19, |
| 70 | + '_SF_DF' => 20, // Semantic Form's default form property |
| 71 | + '_SF_AF' => 21 // Semantic Form's alternate form property |
70 | 72 | ); |
71 | 73 | |
72 | 74 | /// This array defines how various datatypes should be handled internally. This |
— | — | @@ -84,6 +86,7 @@ |
85 | 87 | '_wpg' => SMW_SQL2_RELS2, // Page type |
86 | 88 | '_wpp' => SMW_SQL2_RELS2, // Property page type |
87 | 89 | '_wpc' => SMW_SQL2_RELS2, // Category page type |
| 90 | + '_wpf' => SMW_SQL2_RELS2, // Form page type (for Semantic Forms) |
88 | 91 | '_num' => SMW_SQL2_ATTS2, // Number type |
89 | 92 | '_tem' => SMW_SQL2_ATTS2, // Temperature type |
90 | 93 | '_dat' => SMW_SQL2_ATTS2, // Time type |
— | — | @@ -96,6 +99,7 @@ |
97 | 100 | '__spu' => SMW_SQL2_SPEC2, // Special uri type |
98 | 101 | '__sup' => SMW_SQL2_SUBS2, // Special subproperty type |
99 | 102 | '__suc' => SMW_SQL2_SUBS2, // Special subcategory type |
| 103 | + '__spf' => SMW_SQL2_SPEC2, // Special form type (for Semantic Forms) |
100 | 104 | '__sin' => SMW_SQL2_INST2, // Special instance of type |
101 | 105 | '__red' => SMW_SQL2_REDI2, // Special redirect type |
102 | 106 | '__lin' => SMW_SQL2_SPEC2, // Special linear unit conversion type |
Index: trunk/extensions/SemanticMediaWiki/includes/SMW_GlobalFunctions.php |
— | — | @@ -323,7 +323,9 @@ |
324 | 324 | define('SMW_NS_PROPERTY_TALK', $smwgNamespaceIndex+3); |
325 | 325 | define('SMW_NS_TYPE', $smwgNamespaceIndex+4); |
326 | 326 | define('SMW_NS_TYPE_TALK', $smwgNamespaceIndex+5); |
327 | | - // 106 and 107 are occupied by the Semantic Forms |
| 327 | + // 106 and 107 are occupied by the Semantic Forms, we define them here to offer some (easy but useful) support to SF |
| 328 | + define('SF_NS_FORM', $smwgNamespaceIndex+6); |
| 329 | + define('SF_NS_FORM_TALK', $smwgNamespaceIndex+7); |
328 | 330 | define('SMW_NS_CONCEPT', $smwgNamespaceIndex+8); |
329 | 331 | define('SMW_NS_CONCEPT_TALK', $smwgNamespaceIndex+9); |
330 | 332 | |
Index: trunk/extensions/SemanticMediaWiki/includes/SMW_DV_WikiPage.php |
— | — | @@ -57,11 +57,14 @@ |
58 | 58 | parent::__construct($typeid); |
59 | 59 | switch ($typeid) { |
60 | 60 | case '_wpp' : case '__sup': |
61 | | - $this->m_fixNamespace = SMW_NS_PROPERTY; |
| 61 | + $this->m_fixNamespace = SMW_NS_PROPERTY; |
62 | 62 | break; |
63 | 63 | case '_wpc' : case '__suc': |
64 | | - $this->m_fixNamespace = NS_CATEGORY; |
| 64 | + $this->m_fixNamespace = NS_CATEGORY; |
65 | 65 | break; |
| 66 | + case '_wpf' : case '__spf': |
| 67 | + $this->m_fixNamespace = SF_NS_FORM; |
| 68 | + break; |
66 | 69 | default: //case '_wpg': |
67 | 70 | $this->m_fixNamespace = NS_MAIN; |
68 | 71 | } |