Index: trunk/extensions/SemanticMediaWiki/includes/queryprinters/SMW_QP_RSSlink.php |
— | — | @@ -64,17 +64,17 @@ |
65 | 65 | while ( $row !== false ) { |
66 | 66 | $creators = array(); |
67 | 67 | $dates = array(); |
68 | | - $wikipage = $row[0]->getNextObject(); // get the object |
| 68 | + $wikipage = $row[0]->getNextDataValue(); // get the object |
69 | 69 | foreach ( $row as $field ) { |
70 | 70 | // for now we ignore everything but creator and date, later we may |
71 | 71 | // add more things like geolocs, categories, and even a generic |
72 | 72 | // mechanism to add whatever you want :) |
73 | 73 | $req = $field->getPrintRequest(); |
74 | | - if ( strtolower( $req->getLabel() ) == "creator" ) { |
| 74 | + if ( strtolower( $req->getLabel() ) == 'creator' ) { |
75 | 75 | foreach ( $field->getContent() as $entry ) { |
76 | 76 | $creators[] = $entry->getShortWikiText(); |
77 | 77 | } |
78 | | - } elseif ( ( strtolower( $req->getLabel() ) == "date" ) && ( $req->getTypeID() == "_dat" ) ) { |
| 78 | + } elseif ( ( strtolower( $req->getLabel() ) == 'date' ) && ( $req->getTypeID() == '_dat' ) ) { |
79 | 79 | foreach ( $field->getContent() as $entry ) { |
80 | 80 | $dates[] = $entry->getXMLSchemaDate(); |
81 | 81 | } |
— | — | @@ -112,7 +112,7 @@ |
113 | 113 | foreach ( $items as $item ) { |
114 | 114 | $result .= $item->text(); |
115 | 115 | } |
116 | | - $result .= "</rdf:RDF>"; |
| 116 | + $result .= '</rdf:RDF>'; |
117 | 117 | } else { // just make link to feed |
118 | 118 | if ( $this->getSearchLabel( $outputmode ) ) { |
119 | 119 | $label = $this->getSearchLabel( $outputmode ); |
Index: trunk/extensions/SemanticMediaWiki/includes/queryprinters/SMW_QP_JSONlink.php |
— | — | @@ -66,7 +66,7 @@ |
67 | 67 | if ( $pr->getMode() != SMWPrintRequest::PRINT_THIS ) { |
68 | 68 | $values = array(); |
69 | 69 | $finalvalues = ''; |
70 | | - while ( ( $value = $field->getNextObject() ) !== false ) { |
| 70 | + while ( ( $value = $field->getNextDataValue() ) !== false ) { |
71 | 71 | $finalvalues = ''; |
72 | 72 | switch ( $value->getTypeID() ) { |
73 | 73 | case '_geo': |
Index: trunk/extensions/SemanticMediaWiki/includes/queryprinters/SMW_QP_CSV.php |
— | — | @@ -59,10 +59,10 @@ |
60 | 60 | while ( $row = $res->getNext() ) { |
61 | 61 | $row_items = array(); |
62 | 62 | |
63 | | - foreach ( $row as $field ) { |
| 63 | + foreach ( $row as /* SMWResultArray */ $field ) { |
64 | 64 | $growing = array(); |
65 | 65 | |
66 | | - while ( ( $object = $field->getNextObject() ) !== false ) { |
| 66 | + while ( ( $object = $field->getNextDataValue() ) !== false ) { |
67 | 67 | $growing[] = Sanitizer::decodeCharReferences( $object->getWikiValue() ); |
68 | 68 | } |
69 | 69 | |
Index: trunk/extensions/SemanticMediaWiki/includes/queryprinters/SMW_QP_DSV.php |
— | — | @@ -89,11 +89,11 @@ |
90 | 90 | $rowItems = array(); |
91 | 91 | |
92 | 92 | // Loop over their fields (properties). |
93 | | - foreach ( $row as $field ) { |
| 93 | + foreach ( $row as /* SMWResultArray */ $field ) { |
94 | 94 | $itemSegments = array(); |
95 | 95 | |
96 | 96 | // Loop over all values for the property. |
97 | | - while ( ( $object = $field->getNextObject() ) !== false ) { |
| 97 | + while ( ( $object = $field->getNextDataValue() ) !== false ) { |
98 | 98 | $itemSegments[] = Sanitizer::decodeCharReferences( $object->getWikiValue() ); |
99 | 99 | } |
100 | 100 | |