Source for file search.php
Documentation is available at search.php
* @package Joomla.Platform
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
* MediaWiki API Search class for the Joomla Platform.
* @package Joomla.Platform
* Method to perform a full text search.
* @param string $srsearch Search for all page titles (or content) that has this value.
* @param array $srnamespace The namespace(s) to enumerate.
* @param string $srwhat Search inside the text or titles.
* @param array $srinfo What metadata to return.
* @param array $srprop What properties to return.
* @param boolean $srredirects Include redirect pages in the search.
* @param integer $sroffest Use this value to continue paging.
* @param integer $srlimit How many total pages to return.
public function search($srsearch, array $srnamespace =
null, $srwhat =
null, array $srinfo =
null, array $srprop =
null,
$srredirects =
null, $sroffest =
null, $srlimit =
null)
$path =
'?action=query&list=search';
$path .=
'&srsearch=' .
$srsearch;
$path .=
'&srwhat=' .
$srwhat;
$path .=
'&srredirects=';
$path .=
'&sroffest=' .
$sroffest;
$path .=
'&srlimit=' .
$srlimit;
* Method to search the wiki using opensearch protocol.
* @param string $search Search string.
* @param integer $limit Maximum amount of results to return.
* @param array $namespace Namespaces to search.
* @param string $suggest Do nothing if $wgEnableOpenSearchSuggest is false.
* @param string $format Output format.
public function openSearch($search, $limit =
null, array $namespace =
null, $suggest =
null, $format =
null)
$path =
'?action=query&list=search';
$path .=
'&search=' .
$search;
$path .=
'&limit=' .
$limit;
$path .=
'&suggest=' .
$suggest;
$path .=
'&format=' .
$format;
Documentation generated on Tue, 19 Nov 2013 15:12:39 +0100 by phpDocumentor 1.4.3