/**
  * @param $type string
  * @return array
  */
 private function getQueryModules($type)
 {
     $res = array();
     $params = $this->apiQuery->getAllowedParams();
     foreach ($params[$type][ApiBase::PARAM_TYPE] as $module) {
         $res[] = array('value' => "{$type}={$module}", 'text' => "   {$type}={$module}");
     }
     sort($res);
     array_unshift($res, array('value' => "-{$type}-", 'text' => wfMessage("apisb-query-{$type}")->parse(), 'attributes' => array('disabled' => 'disabled')));
     return $res;
 }
 /**
  * @param $type string
  * @return array
  */
 private function getQueryModules($type)
 {
     $options = array();
     $params = $this->apiQuery->getAllowedParams();
     sort($params[$type][ApiBase::PARAM_TYPE]);
     foreach ($params[$type][ApiBase::PARAM_TYPE] as $module) {
         $options["{$type}={$module}"] = "{$type}={$module}";
     }
     $optgroup = array();
     $optgroup[$this->msg("apisb-query-{$type}")->parse()] = $options;
     return $optgroup;
 }
 /**
  * @param $type string
  * @return array
  */
 private function getQueryModules($type)
 {
     $options = array();
     $params = $this->apiQuery->getAllowedParams();
     sort($params[$type][ApiBase::PARAM_TYPE]);
     foreach ($params[$type][ApiBase::PARAM_TYPE] as $module) {
         $options["{$type}={$module}"] = "{$type}={$module}";
     }
     // Give grep a chance to find the usages:
     // apisb-query-prop, apisb-query-list, apisb-query-meta
     $optgroup = array();
     $optgroup[$this->msg("apisb-query-{$type}")->parse()] = $options;
     return $optgroup;
 }