Jeroen De Dauw has submitted this change and it was merged.

Change subject: Add source auto default
......................................................................


Add source auto default

A method that determines an auto default value.

## Notes
Auto default will allow queries to be retrieved from a different source
without having to use 'source' as input paramter, each individual #ask
query and more importantly all methods that use getQueryResults will have
an auto default value.

## Example
We use 'source' to retrieve queries from cache, which means now that
each query automatically will use the method maintained by
$smwgQuerySources['default'] = ... as standard source for all queries.

This method only comes into play for cases where $smwgQueryCache is
maintained and for all other cases smwfGetStore() is used as default.

Change-Id: I70dea4e59ef7cda0e8df68d774727b7b0959c610
---
M includes/params/SMW_ParamSource.php
1 file changed, 18 insertions(+), 1 deletion(-)

Approvals:
  Jeroen De Dauw: Verified; Looks good to me, approved


--
To view, visit https://gerrit.wikimedia.org/r/16720
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I70dea4e59ef7cda0e8df68d774727b7b0959c610
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SemanticMediaWiki
Gerrit-Branch: master
Gerrit-Owner: Mwjames <[email protected]>
Gerrit-Reviewer: Jeroen De Dauw <[email protected]>
Gerrit-Reviewer: Markus Kroetzsch <[email protected]>
Gerrit-Reviewer: Mwjames <[email protected]>
Gerrit-Reviewer: Yaron Koren <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to