diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2011-06-22 11:28:20 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2011-06-22 11:28:20 +0200 |
commit | 9db190c7e736ec8d063187d4241b59feaf7dc2d1 (patch) | |
tree | 46d1a0dee7febef5c2d57a9f7b972be16a163b3d /includes/search/SearchIBM_DB2.php | |
parent | 78677c7bbdcc9739f6c10c75935898a20e1acd9e (diff) |
update to MediaWiki 1.17.0
Diffstat (limited to 'includes/search/SearchIBM_DB2.php')
-rw-r--r-- | includes/search/SearchIBM_DB2.php | 53 |
1 files changed, 30 insertions, 23 deletions
diff --git a/includes/search/SearchIBM_DB2.php b/includes/search/SearchIBM_DB2.php index d7587186..8cedd6f2 100644 --- a/includes/search/SearchIBM_DB2.php +++ b/includes/search/SearchIBM_DB2.php @@ -1,23 +1,25 @@ <?php -# Copyright (C) 2004 Brion Vibber <brion@pobox.com> -# http://www.mediawiki.org/ -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -# http://www.gnu.org/copyleft/gpl.html - /** + * IBM DB2 search engine + * + * Copyright © 2004 Brion Vibber <brion@pobox.com> + * http://www.mediawiki.org/ + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * * @file * @ingroup Search */ @@ -27,8 +29,13 @@ * @ingroup Search */ class SearchIBM_DB2 extends SearchEngine { + + /** + * Creates an instance of this class + * @param $db DatabaseIbm_db2: database object + */ function __construct($db) { - $this->db = $db; + parent::__construct( $db ); } /** @@ -102,8 +109,8 @@ class SearchIBM_DB2 extends SearchEngine { /** * Construct the full SQL query to do the search. * The guts shoulds be constructed in queryMain() - * @param string $filteredTerm String - * @param bool $fulltext Boolean + * @param $filteredTerm String + * @param $fulltext Boolean */ function getQuery( $filteredTerm, $fulltext ) { return $this->queryLimit($this->queryMain($filteredTerm, $fulltext) . ' ' . @@ -125,8 +132,8 @@ class SearchIBM_DB2 extends SearchEngine { /** * Get the base part of the search query. * - * @param string $filteredTerm String - * @param bool $fulltext Boolean + * @param $filteredTerm String + * @param $fulltext Boolean * @return String */ function queryMain( $filteredTerm, $fulltext ) { |