r86214 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r86213‎ | r86214 | r86215 >
Date:16:29, 16 April 2011
Author:mkroetzsch
Status:deferred
Tags:
Comment:
provide access to SMWStore object used here
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/storage/SMW_QueryResult.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_QueryResult.php
@@ -80,6 +80,15 @@
8181 }
8282
8383 /**
 84+ * Get the SMWStore object that this result is based on.
 85+ *
 86+ * @return SMWStore
 87+ */
 88+ public function getStore() {
 89+ return $this->mStore;
 90+ }
 91+
 92+ /**
8493 * Return the next result row as an array of SMWResultArray objects, and
8594 * advance the internal pointer.
8695 *
@@ -263,6 +272,15 @@
264273 }
265274
266275 /**
 276+ * Get the SMWStore object that this result is based on.
 277+ *
 278+ * @return SMWStore
 279+ */
 280+ public function getStore() {
 281+ return $this->mStore;
 282+ }
 283+
 284+ /**
267285 * Returns the SMWDIWikiPage object to which this SMWResultArray refers.
268286 * If you only care for those objects, consider using SMWQueryResult::getResults()
269287 * directly.

Status & tagging log