r87076 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r87075‎ | r87076 | r87077 >
Date:14:53, 28 April 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
adding compat method
Modified paths:
  • /trunk/extensions/SemanticResultFormats/SemanticResultFormats.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticResultFormats/SemanticResultFormats.php
@@ -184,3 +184,17 @@
185185
186186 return true;
187187 }
 188+
 189+/**
 190+ * Backwards compatibility helper to get the next data value from a SMWResultArray.
 191+ * SMW 1.6 introduces the getNextDataValue and deprecates the getNextObject one.
 192+ *
 193+ * @since 1.6
 194+ *
 195+ * @param SMWResultArray $resArray
 196+ *
 197+ * @return SMWDataValue or false
 198+ */
 199+function efSRFGetNextDV( SMWResultArray &$resArray ) {
 200+ return method_exists( $resArray, 'getNextDataValue' ) ? $resArray->getNextDataValue(): $resArray->getNextObject();
 201+}

Follow-up revisions

RevisionCommit summaryAuthorDate
r87084follow up to r87076jeroendedauw15:52, 28 April 2011

Status & tagging log