r66229 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r66228‎ | r66229 | r66230 >
Date:22:05, 11 May 2010
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Use of self::
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2.php (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2_Queries.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2_Queries.php
@@ -45,7 +45,7 @@
4646 public static $qnum = 0;
4747
4848 public function __construct() {
49 - $this->alias = 't' . SMWSQLStore2Query::$qnum++;
 49+ $this->alias = 't' . self::$qnum++;
5050 }
5151 }
5252
Index: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2.php
@@ -190,7 +190,7 @@
191191
192192 public function getSemanticData( $subject, $filter = false ) {
193193 wfProfileIn( "SMWSQLStore2::getSemanticData (SMW)" );
194 - SMWSQLStore2::$in_getSemanticData++; // do not clear the cache when called recursively
 194+ self::$in_getSemanticData++; // do not clear the cache when called recursively
195195 // *** Find out if this subject exists ***//
196196 if ( $subject instanceof Title ) { ///TODO: can this still occur?
197197 $sid = $this->getSMWPageID( $subject->getDBkey(), $subject->getNamespace(), $subject->getInterwiki() );
@@ -205,7 +205,7 @@
206206 }
207207 if ( $sid == 0 ) { // no data, safe our time
208208 /// NOTE: we consider redirects for getting $sid, so $sid == 0 also means "no redirects"
209 - SMWSQLStore2::$in_getSemanticData--;
 209+ self::$in_getSemanticData--;
210210 wfProfileOut( "SMWSQLStore2::getSemanticData (SMW)" );
211211 return isset( $svalue ) ? ( new SMWSemanticData( $svalue ) ):null;
212212 }
@@ -214,7 +214,7 @@
215215 $this->m_semdata[$sid] = new SMWSemanticData( $svalue, false );
216216 $this->m_sdstate[$sid] = array();
217217 }
218 - if ( ( count( $this->m_semdata ) > 20 ) && ( SMWSQLStore2::$in_getSemanticData == 1 ) ) {
 218+ if ( ( count( $this->m_semdata ) > 20 ) && ( self::$in_getSemanticData == 1 ) ) {
219219 // prevent memory leak;
220220 // It is not so easy to find the sweet spot between cache size and performance gains (both memory and time),
221221 // The value of 20 was chosen by profiling runtimes for large inline queries and heavily annotated pages.
@@ -222,12 +222,12 @@
223223 $this->m_sdstate = array( $sid => $this->m_sdstate[$sid] );
224224 }
225225 // *** Read the data ***//
226 - foreach ( SMWSQLStore2::getPropertyTables() as $tid => $proptable ) {
 226+ foreach ( self::getPropertyTables() as $tid => $proptable ) {
227227 if ( array_key_exists( $tid, $this->m_sdstate[$sid] ) ) continue;
228228 if ( $filter !== false ) {
229229 $relevant = false;
230230 foreach ( $filter as $typeid ) {
231 - $relevant = $relevant || SMWSQLStore2::tableFitsType( $tid, $typeid );
 231+ $relevant = $relevant || self::tableFitsType( $tid, $typeid );
232232 }
233233 if ( !$relevant ) continue;
234234 }
@@ -238,7 +238,7 @@
239239 $this->m_sdstate[$sid][$tid] = true;
240240 }
241241
242 - SMWSQLStore2::$in_getSemanticData--;
 242+ self::$in_getSemanticData--;
243243 wfProfileOut( "SMWSQLStore2::getSemanticData (SMW)" );
244244 return $this->m_semdata[$sid];
245245 }
@@ -272,12 +272,12 @@
273273 }
274274 } else { // no subject given, get all values for the given property
275275 $pid = $this->getSMWPropertyID( $property );
276 - $tableid = SMWSQLStore2::findPropertyTableID( $property );
 276+ $tableid = self::findPropertyTableID( $property );
277277 if ( ( $pid == 0 ) || ( $tableid == '' ) ) {
278278 wfProfileOut( "SMWSQLStore2::getPropertyValues (SMW)" );
279279 return array();
280280 }
281 - $proptables = SMWSQLStore2::getPropertyTables();
 281+ $proptables = self::getPropertyTables();
282282 $data = $this->fetchSemanticData( $pid, $property, $proptables[$tableid], false, $requestoptions );
283283 $result = array();
284284
@@ -474,17 +474,17 @@
475475 // First build $select, $from, and $where for the DB query
476476 $select = $where = $from = '';
477477 $pid = $this->getSMWPropertyID( $property );
478 - $tableid = SMWSQLStore2::findPropertyTableID( $property );
 478+ $tableid = self::findPropertyTableID( $property );
479479
480480 if ( ( $tableid == '' ) && ( $value !== null ) ) { // maybe a type-polymorphic property like _1; use value to find type
481 - $tableid = SMWSQLStore2::findTypeTableID( $value->getTypeID() );
 481+ $tableid = self::findTypeTableID( $value->getTypeID() );
482482 }
483483
484484 if ( ( $pid == 0 ) || ( $tableid == '' ) || ( ( $value !== null ) && ( !$value->isValid() ) ) ) {
485485 return array();
486486 }
487487
488 - $proptables = SMWSQLStore2::getPropertyTables();
 488+ $proptables = self::getPropertyTables();
489489 $proptable = $proptables[$tableid];
490490 $db = wfGetDB( DB_SLAVE );
491491
@@ -541,13 +541,13 @@
542542
543543 if ( $value instanceof SMWContainerValue ) { // recursive handling of containers
544544 $joinfield = "t$tableindex." . reset( array_keys( $proptable->objectfields ) ); // this must be a type 'p' object
545 - $proptables = SMWSQLStore2::getPropertyTables();
 545+ $proptables = self::getPropertyTables();
546546
547547 foreach ( $value->getData()->getProperties() as $subproperty ) {
548 - $tableid = SMWSQLStore2::findPropertyTableID( $subproperty );
 548+ $tableid = self::findPropertyTableID( $subproperty );
549549
550550 if ( ( $tableid == '' ) && ( $value !== null ) ) { // maybe a type-polymorphic property like _1; use value to find type
551 - $tableid = SMWSQLStore2::findTypeTableID( reset( $value->getData()->getPropertyValues( $subproperty ) )->getTypeID() );
 551+ $tableid = self::findTypeTableID( reset( $value->getData()->getPropertyValues( $subproperty ) )->getTypeID() );
552552 }
553553
554554 $subproptable = $proptables[$tableid];
@@ -630,7 +630,7 @@
631631 $suboptions = null;
632632 }
633633
634 - foreach ( SMWSQLStore2::getPropertyTables() as $tid => $proptable ) {
 634+ foreach ( self::getPropertyTables() as $tid => $proptable ) {
635635 $from = $db->tableName( $proptable->name );
636636
637637 if ( $proptable->idsubject ) {
@@ -696,7 +696,7 @@
697697 $suboptions = null;
698698 }
699699
700 - foreach ( SMWSQLStore2::getPropertyTables() as $tid => $proptable ) {
 700+ foreach ( self::getPropertyTables() as $tid => $proptable ) {
701701 if ( !$this->tableFitsType( $tid, $typeid ) ) continue;
702702 $select = $where = $from = '';
703703
@@ -821,7 +821,7 @@
822822
823823 // Finally update caches (may be important if jobs are directly following this call)
824824 $this->m_semdata[$sid] = clone $data;
825 - $this->m_sdstate[$sid] = array_keys( SMWSQLStore2::getPropertyTables() ); // everything that one can know
 825+ $this->m_sdstate[$sid] = array_keys( self::getPropertyTables() ); // everything that one can know
826826 wfRunHooks( 'SMWSQLStore2::updateDataAfter', array( $this, $data ) );
827827 wfProfileOut( "SMWSQLStore2::updateData (SMW)" );
828828 }
@@ -843,14 +843,14 @@
844844 protected function prepareDBUpdates( &$updates, SMWSemanticData $data, $pageid ) {
845845 $subject = $data->getSubject();
846846 $sid = ( $subject !== null ) ? $pageid:$this->makeSMWBnodeID( $pageid );
847 - $proptables = SMWSQLStore2::getPropertyTables();
 847+ $proptables = self::getPropertyTables();
848848
849849 foreach ( $data->getProperties() as $property ) {
850 - $tableid = SMWSQLStore2::findPropertyTableID( $property );
 850+ $tableid = self::findPropertyTableID( $property );
851851
852852 if ( !$tableid ) { // happens when table is not determined by property; use values to find type
853853 $dv = reset( $data->getPropertyValues( $property ) );
854 - $tableid = SMWSQLStore2::findTypeTableID( $dv->getTypeID() );
 854+ $tableid = self::findTypeTableID( $dv->getTypeID() );
855855 }
856856
857857 if ( !$tableid ) { // can't store this data, sorry
@@ -1007,7 +1007,7 @@
10081008 // the query needs to do the filtering of internal properties, else LIMIT is wrong
10091009 $queries = array();
10101010
1011 - foreach ( SMWSQLStore2::getPropertyTables() as $proptable ) {
 1011+ foreach ( self::getPropertyTables() as $proptable ) {
10121012 if ( $proptable->fixedproperty == false ) {
10131013 $queries[] = 'SELECT smw_id, smw_title, COUNT(*) as count, smw_sortkey FROM ' .
10141014 $db->tableName( $proptable->name ) . ' INNER JOIN ' . $db->tableName( 'smw_ids' ) . ' ON p_id=smw_id WHERE smw_iw=' .
@@ -1079,7 +1079,7 @@
10801080 $db->deleteJoin( $smw_tmp_unusedprops, $smw_ids, 'title', 'smw_title', array( 'smw_iw' => SMW_SQL2_SMWPREDEFIW ), $fname );
10811081
10821082 // all tables occurring in some property table are used:
1083 - foreach ( SMWSQLStore2::getPropertyTables() as $proptable ) {
 1083+ foreach ( self::getPropertyTables() as $proptable ) {
10841084 if ( $proptable->fixedproperty == false ) { // MW does not seem to have a suitable wrapper for this
10851085 $db->query( "DELETE $smw_tmp_unusedprops.* FROM $smw_tmp_unusedprops, " . $db->tableName( $proptable->name ) .
10861086 " INNER JOIN $smw_ids ON p_id=smw_id WHERE title=smw_title AND smw_iw=" . $db->addQuotes( '' ), $fname );
@@ -1087,8 +1087,8 @@
10881088 }
10891089
10901090 // properties that have subproperties are considered to be used
1091 - $proptables = SMWSQLStore2::getPropertyTables();
1092 - $subtable = $proptables[SMWSQLStore2::findTypeTableID( '__sup' )]; // find the subproperty table, but consider its signature to be known
 1091+ $proptables = self::getPropertyTables();
 1092+ $subtable = $proptables[self::findTypeTableID( '__sup' )]; // find the subproperty table, but consider its signature to be known
10931093
10941094 // (again we have no fitting MW wrapper here:)
10951095 $db->query( "DELETE $smw_tmp_unusedprops.* FROM $smw_tmp_unusedprops," . $db->tableName( $subtable->name ) .
@@ -1132,8 +1132,8 @@
11331133 wfProfileIn( "SMWSQLStore2::getWantedPropertiesSpecial (SMW)" );
11341134
11351135 // Note that Wanted Properties must have the default type.
1136 - $proptables = SMWSQLStore2::getPropertyTables();
1137 - $proptable = $proptables[SMWSQLStore2::findTypeTableID( $smwgPDefaultType )];
 1136+ $proptables = self::getPropertyTables();
 1137+ $proptable = $proptables[self::findTypeTableID( $smwgPDefaultType )];
11381138
11391139 $result = array();
11401140
@@ -1161,10 +1161,10 @@
11621162 wfProfileIn( 'SMWSQLStore2::getStatistics (SMW)' );
11631163 $db = wfGetDB( DB_SLAVE );
11641164 $result = array();
1165 - $proptables = SMWSQLStore2::getPropertyTables();
 1165+ $proptables = self::getPropertyTables();
11661166 // count number of declared properties by counting "has type" annotations
11671167 $typeprop = SMWPropertyValue::makeProperty( '_TYPE' );
1168 - $typetable = $proptables[SMWSQLStore2::findPropertyTableID( $typeprop )];
 1168+ $typetable = $proptables[self::findPropertyTableID( $typeprop )];
11691169 $res = $db->select( $typetable->name, 'COUNT(s_id) AS count', array( 'p_id' => $this->getSMWPropertyID( $typeprop ) ), 'SMW::getStatistics' );
11701170 $row = $db->fetchObject( $res );
11711171 $result['DECLPROPS'] = $row->count;
@@ -1173,7 +1173,7 @@
11741174 // count used properties by counting distinct properties in each table
11751175 $result['PROPUSES'] = 0;
11761176 $result['USEDPROPS'] = 0;
1177 - foreach ( SMWSQLStore2::getPropertyTables() as $proptable ) {
 1177+ foreach ( self::getPropertyTables() as $proptable ) {
11781178 /// Note: subproperties that are part of container values are counted individually;
11791179 /// It does not seem to be important to filter them by adding more conditions.
11801180 $res = $db->select( $proptable->name, 'COUNT(*) AS count', '', 'SMW::getStatistics' );
@@ -1283,7 +1283,7 @@
12841284 SMWSQLHelpers::setupIndex( $smw_conc2, array( 's_id' ), $db );
12851285
12861286 // Set up all property tables as defined:
1287 - foreach ( SMWSQLStore2::getPropertyTables() as $proptable ) {
 1287+ foreach ( self::getPropertyTables() as $proptable ) {
12881288 if ( $proptable->idsubject ) {
12891289 $fieldarray = array( 's_id' => $dbtypes['p'] . ' NOT NULL' );
12901290 $indexes = array( 's_id' );
@@ -1339,7 +1339,7 @@
13401340 }
13411341 // now write actual properties; do that each time, it is cheap enough and we can update sortkeys by current language
13421342 $this->reportProgress( " ... writing entries for internal properties.\n", $verbose );
1343 - foreach ( SMWSQLStore2::$special_ids as $prop => $id ) {
 1343+ foreach ( self::$special_ids as $prop => $id ) {
13441344 $p = SMWPropertyValue::makeProperty( $prop );
13451345 $db->replace( 'smw_ids', array( 'smw_id' ), array(
13461346 'smw_id' => $id,
@@ -1364,7 +1364,7 @@
13651365 $this->reportProgress( "Deleting all database content and tables generated by SMW ...\n\n", $verbose );
13661366 $db = wfGetDB( DB_MASTER );
13671367 $tables = array( 'smw_ids', 'smw_conc2', 'smw_conccache' );
1368 - foreach ( SMWSQLStore2::getPropertyTables() as $proptable ) {
 1368+ foreach ( self::getPropertyTables() as $proptable ) {
13691369 $tables[] = $proptable->name;
13701370 }
13711371 foreach ( $tables as $table ) {
@@ -1735,20 +1735,20 @@
17361736 * An empty string is returned if no matching table could be found.
17371737 */
17381738 public static function findTypeTableID( $typeid ) {
1739 - if ( !array_key_exists( $typeid, SMWSQLStore2::$property_table_ids ) ) {
1740 - $signature = SMWSQLStore2::getTypeSignature( $typeid );
 1739+ if ( !array_key_exists( $typeid, self::$property_table_ids ) ) {
 1740+ $signature = self::getTypeSignature( $typeid );
17411741
1742 - foreach ( SMWSQLStore2::getPropertyTables() as $tid => $proptable ) {
1743 - if ( SMWSQLStore2::tableFitsSignature( $tid, $signature ) ) {
1744 - SMWSQLStore2::$property_table_ids[$typeid] = $tid;
 1742+ foreach ( self::getPropertyTables() as $tid => $proptable ) {
 1743+ if ( self::tableFitsSignature( $tid, $signature ) ) {
 1744+ self::$property_table_ids[$typeid] = $tid;
17451745 return $tid;
17461746 }
17471747 }
17481748
1749 - SMWSQLStore2::$property_table_ids[$typeid] = ''; // No matching table found.
 1749+ self::$property_table_ids[$typeid] = ''; // No matching table found.
17501750 }
17511751
1752 - return SMWSQLStore2::$property_table_ids[$typeid];
 1752+ return self::$property_table_ids[$typeid];
17531753 }
17541754
17551755 /**
@@ -1756,27 +1756,27 @@
17571757 * values for the given property object.
17581758 */
17591759 public static function findPropertyTableID( $property ) {
1760 - if ( SMWSQLStore2::$fixed_prop_tables === null ) { // Build lookup array once.
1761 - SMWSQLStore2::$fixed_prop_tables = array();
 1760+ if ( self::$fixed_prop_tables === null ) { // Build lookup array once.
 1761+ self::$fixed_prop_tables = array();
17621762
1763 - foreach ( SMWSQLStore2::getPropertyTables() as $tid => $proptable ) {
 1763+ foreach ( self::getPropertyTables() as $tid => $proptable ) {
17641764 if ( $proptable->fixedproperty != false ) {
1765 - SMWSQLStore2::$fixed_prop_tables[$proptable->fixedproperty] = $tid;
 1765+ self::$fixed_prop_tables[$proptable->fixedproperty] = $tid;
17661766 }
17671767 }
17681768 }
17691769
17701770 $propertykey = ( $property->isUserDefined() ) ? $property->getDBkey():$property->getPropertyId();
17711771
1772 - if ( array_key_exists( $propertykey, SMWSQLStore2::$fixed_prop_tables ) ) {
1773 - $signature = SMWSQLStore2::getTypeSignature( $property->getPropertyTypeID() );
 1772+ if ( array_key_exists( $propertykey, self::$fixed_prop_tables ) ) {
 1773+ $signature = self::getTypeSignature( $property->getPropertyTypeID() );
17741774
1775 - if ( SMWSQLStore2::tableFitsSignature( SMWSQLStore2::$fixed_prop_tables[$propertykey], $signature ) ) {
1776 - return SMWSQLStore2::$fixed_prop_tables[$propertykey];
 1775+ if ( self::tableFitsSignature( SMWSQLStore2::$fixed_prop_tables[$propertykey], $signature ) ) {
 1776+ return self::$fixed_prop_tables[$propertykey];
17771777 }
17781778 } // else: Don't check for non-fitting entries in $fixed_prop_tables: not really important.
17791779
1780 - return SMWSQLStore2::findTypeTableID( $property->getPropertyTypeID() );
 1780+ return self::findTypeTableID( $property->getPropertyTypeID() );
17811781 }
17821782
17831783 /**
@@ -1912,8 +1912,8 @@
19131913 * that properties might be predefined.
19141914 */
19151915 public function getSMWPropertyID( SMWPropertyValue $property ) {
1916 - if ( ( !$property->isUserDefined() ) && ( array_key_exists( $property->getPropertyID(), SMWSQLStore2::$special_ids ) ) ) {
1917 - return SMWSQLStore2::$special_ids[$property->getPropertyID()]; // very important property with fixed id
 1916+ if ( ( !$property->isUserDefined() ) && ( array_key_exists( $property->getPropertyID(), self::$special_ids ) ) ) {
 1917+ return self::$special_ids[$property->getPropertyID()]; // very important property with fixed id
19181918 } else {
19191919 return $this->getSMWPageID( $property->getDBkey(), SMW_NS_PROPERTY, $this->getPropertyInterwiki( $property ), true );
19201920 }
@@ -1924,8 +1924,8 @@
19251925 * that properties might be predefined.
19261926 */
19271927 protected function makeSMWPropertyID( SMWPropertyValue $property ) {
1928 - if ( ( !$property->isUserDefined() ) && ( array_key_exists( $property->getPropertyID(), SMWSQLStore2::$special_ids ) ) ) {
1929 - return SMWSQLStore2::$special_ids[$property->getPropertyID()]; // very important property with fixed id
 1928+ if ( ( !$property->isUserDefined() ) && ( array_key_exists( $property->getPropertyID(), self::$special_ids ) ) ) {
 1929+ return self::$special_ids[$property->getPropertyID()]; // very important property with fixed id
19301930 } else {
19311931 return $this->makeSMWPageID( $property->getDBkey(), SMW_NS_PROPERTY, $this->getPropertyInterwiki( $property ), true );
19321932 }
@@ -2051,7 +2051,7 @@
20522052 array( 'smw_title' => '', 'smw_namespace' => $oldid, 'smw_iw' => SMW_SQL2_SMWIW ), $fname );
20532053 }
20542054 // change all id entries in property tables:
2055 - foreach ( SMWSQLStore2::getPropertyTables() as $proptable ) {
 2055+ foreach ( self::getPropertyTables() as $proptable ) {
20562056 if ( $sdata && $proptable->idsubject ) {
20572057 $db->update( $proptable->name, array( 's_id' => $newid ), array( 's_id' => $oldid ), $fname );
20582058 }
@@ -2094,7 +2094,7 @@
20952095 $fname = 'SMW::deleteSemanticData';
20962096 $id = $this->getSMWPageID( $subject->getDBkey(), $subject->getNamespace(), $subject->getInterwiki(), false );
20972097 if ( $id == 0 ) return; // not (directly) used anywhere yet, maybe a redirect but we do not care here
2098 - foreach ( SMWSQLStore2::getPropertyTables() as $proptable ) {
 2098+ foreach ( self::getPropertyTables() as $proptable ) {
20992099 if ( $proptable->idsubject ) {
21002100 $db->delete( $proptable->name, array( 's_id' => $id ), $fname );
21012101 } elseif ( $proptable->name != 'smw_redi' ) { /// NOTE: redirects are handled by updateRedirects(), not here!
@@ -2105,7 +2105,7 @@
21062106 $res = $db->select( 'smw_ids', 'smw_id', array( 'smw_title' => '', 'smw_namespace' => $id, 'smw_iw' => SMW_SQL2_SMWIW ), $fname );
21072107 // ... and delete them as well
21082108 while ( $row = $db->fetchObject( $res ) ) {
2109 - foreach ( SMWSQLStore2::getPropertyTables() as $proptable ) {
 2109+ foreach ( self::getPropertyTables() as $proptable ) {
21102110 if ( $proptable->idsubject ) {
21112111 $db->delete( $proptable->name, array( 's_id' => $row->smw_id ), $fname );
21122112 }
@@ -2166,7 +2166,7 @@
21672167 // entries that refer to old target may in fact refer to subject, but we don't know which: schedule affected pages for update
21682168 $jobs = array();
21692169
2170 - foreach ( SMWSQLStore2::getPropertyTables() as $proptable ) {
 2170+ foreach ( self::getPropertyTables() as $proptable ) {
21712171 if ( $proptable->name == 'smw_redi2' ) continue; // can safely be skipped
21722172
21732173 if ( $proptable->idsubject ) {
@@ -2259,40 +2259,40 @@
22602260 * @return array
22612261 */
22622262 public static function getPropertyTables() {
2263 - if ( count( SMWSQLStore2::$prop_tables ) > 0 ) return SMWSQLStore2::$prop_tables; // don't initialise twice
2264 - SMWSQLStore2::$prop_tables['smw_rels2'] = new SMWSQLStore2Table( 'smw_rels2',
 2263+ if ( count( self::$prop_tables ) > 0 ) return self::$prop_tables; // don't initialise twice
 2264+ self::$prop_tables['smw_rels2'] = new SMWSQLStore2Table( 'smw_rels2',
22652265 array( 'o_id' => 'p' ),
22662266 array( 'o_id' ) );
2267 - SMWSQLStore2::$prop_tables['smw_atts2'] = new SMWSQLStore2Table( 'smw_atts2',
 2267+ self::$prop_tables['smw_atts2'] = new SMWSQLStore2Table( 'smw_atts2',
22682268 array( 'value_xsd' => 't', 'value_num' => 'f', 'value_unit' => 'u' ),
22692269 array( 'value_num', 'value_xsd' ) );
2270 - SMWSQLStore2::$prop_tables['smw_text2'] = new SMWSQLStore2Table( 'smw_text2',
 2270+ self::$prop_tables['smw_text2'] = new SMWSQLStore2Table( 'smw_text2',
22712271 array( 'value_blob' => 'l' ) );
2272 - SMWSQLStore2::$prop_tables['smw_spec2'] = new SMWSQLStore2Table( 'smw_spec2',
 2272+ self::$prop_tables['smw_spec2'] = new SMWSQLStore2Table( 'smw_spec2',
22732273 array( 'value_string' => 't' ),
22742274 array( 's_id,p_id' ) );
2275 - SMWSQLStore2::$prop_tables['smw_spec2']->specpropsonly = true;
2276 - SMWSQLStore2::$prop_tables['smw_subs2'] = new SMWSQLStore2Table( 'smw_subs2',
 2275+ self::$prop_tables['smw_spec2']->specpropsonly = true;
 2276+ self::$prop_tables['smw_subs2'] = new SMWSQLStore2Table( 'smw_subs2',
22772277 array( 'o_id' => 'p' ),
22782278 array( 'o_id' ),
22792279 '_SUBC' );
2280 - SMWSQLStore2::$prop_tables['smw_subp2'] = new SMWSQLStore2Table( 'smw_subp2',
 2280+ self::$prop_tables['smw_subp2'] = new SMWSQLStore2Table( 'smw_subp2',
22812281 array( 'o_id' => 'p' ),
22822282 array( 'o_id' ),
22832283 '_SUBP' );
2284 - SMWSQLStore2::$prop_tables['smw_inst2'] = new SMWSQLStore2Table( 'smw_inst2',
 2284+ self::$prop_tables['smw_inst2'] = new SMWSQLStore2Table( 'smw_inst2',
22852285 array( 'o_id' => 'p' ),
22862286 array( 'o_id' ),
22872287 '_INST' );
2288 - SMWSQLStore2::$prop_tables['smw_redi2'] = new SMWSQLStore2Table( 'smw_redi2',
 2288+ self::$prop_tables['smw_redi2'] = new SMWSQLStore2Table( 'smw_redi2',
22892289 array( 'o_id' => 'p' ),
22902290 array( 'o_id' ),
22912291 '_REDI' );
2292 - SMWSQLStore2::$prop_tables['smw_redi2']->idsubject = false;
 2292+ self::$prop_tables['smw_redi2']->idsubject = false;
22932293
2294 - wfRunHooks( 'SMWPropertyTables', array( &SMWSQLStore2::$prop_tables ) );
 2294+ wfRunHooks( 'SMWPropertyTables', array( &self::$prop_tables ) );
22952295
2296 - return SMWSQLStore2::$prop_tables;
 2296+ return self::$prop_tables;
22972297 }
22982298
22992299 }
\ No newline at end of file

Status & tagging log