Index: trunk/extensions/SemanticMaps/SemanticMaps.php |
— | — | @@ -35,7 +35,7 @@ |
36 | 36 | |
37 | 37 | // Only initialize the extension when all dependencies are present. |
38 | 38 | if (defined( 'Maps_VERSION' ) && defined( 'SMW_VERSION' )) { |
39 | | - define('SM_VERSION', '0.5.1'); |
| 39 | + define('SM_VERSION', '0.5.2 a2'); |
40 | 40 | |
41 | 41 | $smgScriptPath = $wgScriptPath . '/extensions/SemanticMaps'; |
42 | 42 | $smgIP = $IP . '/extensions/SemanticMaps'; |
Index: trunk/extensions/SemanticMaps/QueryPrinters/SM_QueryPrinters.php |
— | — | @@ -69,11 +69,38 @@ |
70 | 70 | 'aliases' => array('force show'), |
71 | 71 | 'default' => false, |
72 | 72 | '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 | + ), |
76 | 95 | '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(), |
78 | 105 | 'distance' => array(), |
79 | 106 | ); |
80 | 107 | } |