r60997 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r60996‎ | r60997 | r60998 >
Date:01:45, 13 January 2010
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Added missing SMW #Ask: parameters to the query printers parameter list.
Modified paths:
  • /trunk/extensions/SemanticMaps/QueryPrinters/SM_QueryPrinters.php (modified) (history)
  • /trunk/extensions/SemanticMaps/SemanticMaps.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMaps/SemanticMaps.php
@@ -35,7 +35,7 @@
3636
3737 // Only initialize the extension when all dependencies are present.
3838 if (defined( 'Maps_VERSION' ) && defined( 'SMW_VERSION' )) {
39 - define('SM_VERSION', '0.5.1');
 39+ define('SM_VERSION', '0.5.2 a2');
4040
4141 $smgScriptPath = $wgScriptPath . '/extensions/SemanticMaps';
4242 $smgIP = $IP . '/extensions/SemanticMaps';
Index: trunk/extensions/SemanticMaps/QueryPrinters/SM_QueryPrinters.php
@@ -69,11 +69,38 @@
7070 'aliases' => array('force show'),
7171 'default' => false,
7272 'output-type' => 'boolean'
73 - ),
74 - 'limit' => array(),
75 - 'headers' => array(),
 73+ ),
 74+ // SMW #Ask: parameters
 75+ 'limit' => array(
 76+ 'type' => 'integer',
 77+ 'criteria' => array(
 78+ 'in_range' => array(0)
 79+ )
 80+ ),
 81+ 'offset' => array(
 82+ 'type' => 'integer'
 83+ ),
 84+ 'sort' => array(),
 85+ 'order' => array(
 86+ 'criteria' => array(
 87+ 'in_array' => array('ascending', 'asc', 'descending', 'desc', 'reverse')
 88+ )
 89+ ),
 90+ 'headers' => array(
 91+ 'criteria' => array(
 92+ 'in_array' => array('show', 'hide')
 93+ )
 94+ ),
7695 'mainlabel' => array(),
77 - 'link' => array(),
 96+ 'link' => array(
 97+ 'criteria' => array(
 98+ 'in_array' => array('none', 'subject', 'all')
 99+ )
 100+ ),
 101+ 'default' => array(),
 102+ 'intro' => array(),
 103+ 'outro' => array(),
 104+ 'searchlabel' => array(),
78105 'distance' => array(),
79106 );
80107 }

Status & tagging log