Index: trunk/extensions/SemanticInternalObjects/SemanticInternalObjects_body.php |
— | — | @@ -35,6 +35,10 @@ |
36 | 36 | public function getName() { |
37 | 37 | return $this->mMainTitle->getDBkey() . '#' . $this->mIndex; |
38 | 38 | } |
| 39 | + |
| 40 | + public function getNamespace() { |
| 41 | + return $this->mMainTitle->getNamespace(); |
| 42 | + } |
39 | 43 | } |
40 | 44 | |
41 | 45 | /** |
— | — | @@ -114,9 +118,8 @@ |
115 | 119 | return $ids; |
116 | 120 | } |
117 | 121 | |
118 | | - function getStorageSQL( $mainPageName, $namespace, $internalObject ) { |
119 | | - $mainPageID = $this->makeSMWPageID( $mainPageName, $namespace, '' ); |
120 | | - $ioID = $this->makeSMWPageID( $internalObject->getName(), $namespace, '' ); |
| 122 | + function getStorageSQL( $internalObject ) { |
| 123 | + $ioID = $this->makeSMWPageID( $internalObject->getName(), $internalObject->getNamespace(), '' ); |
121 | 124 | $upRels2 = array(); |
122 | 125 | $upAtts2 = array(); |
123 | 126 | $upText2 = array(); |
— | — | @@ -297,7 +300,7 @@ |
298 | 301 | $allText2Inserts = array(); |
299 | 302 | $allCoordsInserts = array(); |
300 | 303 | foreach ( self::$mInternalObjects as $internalObject ) { |
301 | | - list( $upRels2, $upAtts2, $upText2, $upCoords ) = $sioSQLStore->getStorageSQL( $pageName, $namespace, $internalObject ); |
| 304 | + list( $upRels2, $upAtts2, $upText2, $upCoords ) = $sioSQLStore->getStorageSQL( $internalObject ); |
302 | 305 | $allRels2Inserts = array_merge( $allRels2Inserts, $upRels2 ); |
303 | 306 | $allAtts2Inserts = array_merge( $allAtts2Inserts, $upAtts2 ); |
304 | 307 | $allText2Inserts = array_merge( $allText2Inserts, $upText2 ); |