Ejemplo n.º 1
0
 /**
  * @param $definitions \ParamProcessor\ParamDefinition[]
  *
  * @return array
  */
 public function getParamDefinitions(array $definitions)
 {
     $params = parent::getParamDefinitions($definitions);
     $definitions['searchlabel']->setDefault(wfMessage('srf-excel-link')->inContentLanguage()->text());
     $params['templatefile'] = new StringParam('string', 'templatefile', '');
     $params['filename'] = new StringParam('string', 'filename', '');
     return $params;
 }
Ejemplo n.º 2
0
 /**
  * @see SMWResultPrinter::getParamDefinitions
  *
  * @since 3.0
  *
  * @param ParamDefinition[] $definitions
  *
  * @return array of ParamDefinition|array
  */
 public function getParamDefinitions(array $definitions)
 {
     global $egMapsDefaultLabel, $egMapsDefaultTitle;
     $params = parent::getParamDefinitions($definitions);
     $params['text'] = array('message' => 'semanticmaps-kml-text', 'default' => $egMapsDefaultLabel);
     $params['title'] = array('message' => 'semanticmaps-kml-title', 'default' => $egMapsDefaultTitle);
     $params['linkabsolute'] = array('message' => 'semanticmaps-kml-linkabsolute', 'type' => 'boolean', 'default' => true);
     $params['pagelinktext'] = array('message' => 'semanticmaps-kml-pagelinktext', 'default' => wfMessage('semanticmaps-default-kml-pagelink')->text());
     return $params;
 }
Ejemplo n.º 3
0
 /**
  * @see SMWResultPrinter::getParamDefinitions
  *
  * @since 1.8
  *
  * @param ParamDefinition[] $definitions
  *
  * @return array
  */
 public function getParamDefinitions(array $definitions)
 {
     $definitions = parent::getParamDefinitions($definitions);
     $definitions['limit']->setDefault(100);
     $definitions['searchlabel']->setDefault(wfMessage('smw_rdf_link')->inContentLanguage()->text());
     $definitions[] = array('name' => 'syntax', 'message' => 'smw-paramdesc-rdfsyntax', 'values' => array('rdfxml', 'turtle'), 'default' => 'rdfxml');
     return $definitions;
 }
 /**
  * @see SMWResultPrinter::getParamDefinitions
  *
  * @since 1.8
  *
  * @param ParamDefinition[] $definitions
  *
  * @return array
  */
 public function getParamDefinitions(array $definitions)
 {
     $params = parent::getParamDefinitions($definitions);
     $params['searchlabel']->setDefault($this->getContext()->msg('smw-label-feed-link')->inContentLanguage()->text());
     $params['type'] = array('type' => 'string', 'default' => 'rss', 'message' => 'smw-paramdesc-feedtype', 'values' => array('rss', 'atom'));
     $params['title'] = array('message' => 'smw-paramdesc-feedtitle', 'default' => '', 'aliases' => array('rsstitle'));
     $params['description'] = array('message' => 'smw-paramdesc-feeddescription', 'default' => '', 'aliases' => array('rssdescription'));
     $params['page'] = array('message' => 'smw-paramdesc-feedpagecontent', 'default' => 'none', 'values' => array('none', 'full'));
     return $params;
 }
 /**
  * @see SMWResultPrinter::getParamDefinitions
  *
  * @since 1.8
  *
  * @param ParamDefinition[] $definitions
  *
  * @return array
  */
 public function getParamDefinitions(array $definitions)
 {
     $params = parent::getParamDefinitions($definitions);
     $params['searchlabel']->setDefault(wfMessage('smw_dsv_link')->text());
     $params['limit']->setDefault(100);
     $params[] = array('name' => 'separator', 'message' => 'smw-paramdesc-dsv-separator', 'default' => $this->separator, 'aliases' => 'sep');
     $params[] = array('name' => 'filename', 'message' => 'smw-paramdesc-dsv-filename', 'default' => $this->fileName);
     return $params;
 }
Ejemplo n.º 6
0
 /**
  * @see SMWResultPrinter::getParamDefinitions
  * @codeCoverageIgnore
  *
  * @since 1.8
  *
  * @param ParamDefinition[] $definitions
  *
  * @return array
  */
 public function getParamDefinitions(array $definitions)
 {
     $params = parent::getParamDefinitions($definitions);
     $definitions['searchlabel']->setDefault($this->msg('smw_csv_link')->inContentLanguage()->text());
     $definitions['limit']->setDefault(100);
     $params[] = array('name' => 'sep', 'message' => 'smw-paramdesc-csv-sep', 'default' => ',');
     $params['showsep'] = array('type' => 'boolean', 'default' => false, 'message' => 'smw-paramdesc-showsep');
     $params[] = array('name' => 'filename', 'message' => 'smw-paramdesc-filename', 'default' => 'result.csv');
     return $params;
 }
Ejemplo n.º 7
0
 /**
  * @see SMWResultPrinter::getParamDefinitions
  * @codeCoverageIgnore
  *
  * @since 1.8
  *
  * @param ParamDefinition[] $definitions
  *
  * @return array
  */
 public function getParamDefinitions(array $definitions)
 {
     $params = parent::getParamDefinitions($definitions);
     $params['searchlabel']->setDefault($this->msg('smw_json_link')->text());
     $params['limit']->setDefault(100);
     $params['prettyprint'] = array('type' => 'boolean', 'default' => '', 'message' => 'smw-paramdesc-prettyprint');
     return $params;
 }