r70682 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r70681‎ | r70682 | r70683 >
Date:10:44, 8 August 2010
Author:ialex
Status:ok
Tags:
Comment:
* standardised file headers
* added a basic description
* added @file
Modified paths:
  • /trunk/phase3/includes/search/SearchEngine.php (modified) (history)
  • /trunk/phase3/includes/search/SearchIBM_DB2.php (modified) (history)
  • /trunk/phase3/includes/search/SearchMssql.php (modified) (history)
  • /trunk/phase3/includes/search/SearchMySQL.php (modified) (history)
  • /trunk/phase3/includes/search/SearchOracle.php (modified) (history)
  • /trunk/phase3/includes/search/SearchPostgres.php (modified) (history)
  • /trunk/phase3/includes/search/SearchSqlite.php (modified) (history)
  • /trunk/phase3/includes/search/SearchUpdate.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/search/SearchIBM_DB2.php
@@ -1,23 +1,25 @@
22 <?php
3 -# Copyright (C) 2004 Brion Vibber <brion@pobox.com>
4 -# http://www.mediawiki.org/
5 -#
6 -# This program is free software; you can redistribute it and/or modify
7 -# it under the terms of the GNU General Public License as published by
8 -# the Free Software Foundation; either version 2 of the License, or
9 -# (at your option) any later version.
10 -#
11 -# This program is distributed in the hope that it will be useful,
12 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
13 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 -# GNU General Public License for more details.
15 -#
16 -# You should have received a copy of the GNU General Public License along
17 -# with this program; if not, write to the Free Software Foundation, Inc.,
18 -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 -# http://www.gnu.org/copyleft/gpl.html
20 -
213 /**
 4+ * IBM DB2 search engine
 5+ *
 6+ * Copyright © 2004 Brion Vibber <brion@pobox.com>
 7+ * http://www.mediawiki.org/
 8+ *
 9+ * This program is free software; you can redistribute it and/or modify
 10+ * it under the terms of the GNU General Public License as published by
 11+ * the Free Software Foundation; either version 2 of the License, or
 12+ * (at your option) any later version.
 13+ *
 14+ * This program is distributed in the hope that it will be useful,
 15+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
 16+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 17+ * GNU General Public License for more details.
 18+ *
 19+ * You should have received a copy of the GNU General Public License along
 20+ * with this program; if not, write to the Free Software Foundation, Inc.,
 21+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 22+ * http://www.gnu.org/copyleft/gpl.html
 23+ *
2224 * @file
2325 * @ingroup Search
2426 */
Index: trunk/phase3/includes/search/SearchMssql.php
@@ -18,6 +18,7 @@
1919 * http://www.gnu.org/copyleft/gpl.html
2020 *
2121 * @file
 22+ * @ingroup Search
2223 */
2324
2425 /**
Index: trunk/phase3/includes/search/SearchSqlite.php
@@ -1,22 +1,22 @@
22 <?php
3 -# SQLite search backend, based upon SearchMysql
4 -#
5 -# This program is free software; you can redistribute it and/or modify
6 -# it under the terms of the GNU General Public License as published by
7 -# the Free Software Foundation; either version 2 of the License, or
8 -# (at your option) any later version.
9 -#
10 -# This program is distributed in the hope that it will be useful,
11 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
12 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 -# GNU General Public License for more details.
14 -#
15 -# You should have received a copy of the GNU General Public License along
16 -# with this program; if not, write to the Free Software Foundation, Inc.,
17 -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 -# http://www.gnu.org/copyleft/gpl.html
19 -
203 /**
 4+ * SQLite search backend, based upon SearchMysql
 5+ *
 6+ * This program is free software; you can redistribute it and/or modify
 7+ * it under the terms of the GNU General Public License as published by
 8+ * the Free Software Foundation; either version 2 of the License, or
 9+ * (at your option) any later version.
 10+ *
 11+ * This program is distributed in the hope that it will be useful,
 12+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
 13+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 14+ * GNU General Public License for more details.
 15+ *
 16+ * You should have received a copy of the GNU General Public License along
 17+ * with this program; if not, write to the Free Software Foundation, Inc.,
 18+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 19+ * http://www.gnu.org/copyleft/gpl.html
 20+ *
2121 * @file
2222 * @ingroup Search
2323 */
Index: trunk/phase3/includes/search/SearchUpdate.php
@@ -1,8 +1,18 @@
22 <?php
33 /**
 4+ * Search index updater
 5+ *
46 * See deferred.txt
 7+ *
 8+ * @file
59 * @ingroup Search
610 */
 11+
 12+/**
 13+ * Database independant search index updater
 14+ *
 15+ * @ingroup Search
 16+ */
717 class SearchUpdate {
818
919 /* private */ var $mId = 0, $mNamespace, $mTitle, $mText;
@@ -106,6 +116,7 @@
107117
108118 /**
109119 * Placeholder class
 120+ *
110121 * @ingroup Search
111122 */
112123 class SearchUpdateMyISAM extends SearchUpdate {
Index: trunk/phase3/includes/search/SearchEngine.php
@@ -1,12 +1,16 @@
22 <?php
33 /**
4 - * @defgroup Search Search
 4+ * Basic search engine
55 *
66 * @file
77 * @ingroup Search
88 */
99
1010 /**
 11+ * @defgroup Search Search
 12+ */
 13+
 14+/**
1115 * Contain a class for special pages
1216 * @ingroup Search
1317 */
Index: trunk/phase3/includes/search/SearchMySQL.php
@@ -1,23 +1,25 @@
22 <?php
3 -# Copyright (C) 2004 Brion Vibber <brion@pobox.com>
4 -# http://www.mediawiki.org/
5 -#
6 -# This program is free software; you can redistribute it and/or modify
7 -# it under the terms of the GNU General Public License as published by
8 -# the Free Software Foundation; either version 2 of the License, or
9 -# (at your option) any later version.
10 -#
11 -# This program is distributed in the hope that it will be useful,
12 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
13 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 -# GNU General Public License for more details.
15 -#
16 -# You should have received a copy of the GNU General Public License along
17 -# with this program; if not, write to the Free Software Foundation, Inc.,
18 -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 -# http://www.gnu.org/copyleft/gpl.html
20 -
213 /**
 4+ * MySQL search engine
 5+ *
 6+ * Copyright (C) 2004 Brion Vibber <brion@pobox.com>
 7+ * http://www.mediawiki.org/
 8+ *
 9+ * This program is free software; you can redistribute it and/or modify
 10+ * it under the terms of the GNU General Public License as published by
 11+ * the Free Software Foundation; either version 2 of the License, or
 12+ * (at your option) any later version.
 13+ *
 14+ * This program is distributed in the hope that it will be useful,
 15+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
 16+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 17+ * GNU General Public License for more details.
 18+ *
 19+ * You should have received a copy of the GNU General Public License along
 20+ * with this program; if not, write to the Free Software Foundation, Inc.,
 21+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 22+ * http://www.gnu.org/copyleft/gpl.html
 23+ *
2224 * @file
2325 * @ingroup Search
2426 */
Index: trunk/phase3/includes/search/SearchOracle.php
@@ -1,23 +1,25 @@
22 <?php
3 -# Copyright (C) 2004 Brion Vibber <brion@pobox.com>
4 -# http://www.mediawiki.org/
5 -#
6 -# This program is free software; you can redistribute it and/or modify
7 -# it under the terms of the GNU General Public License as published by
8 -# the Free Software Foundation; either version 2 of the License, or
9 -# (at your option) any later version.
10 -#
11 -# This program is distributed in the hope that it will be useful,
12 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
13 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 -# GNU General Public License for more details.
15 -#
16 -# You should have received a copy of the GNU General Public License along
17 -# with this program; if not, write to the Free Software Foundation, Inc.,
18 -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 -# http://www.gnu.org/copyleft/gpl.html
20 -
213 /**
 4+ * Oracle search engine
 5+ *
 6+ * Copyright © 2004 Brion Vibber <brion@pobox.com>
 7+ * http://www.mediawiki.org/
 8+ *
 9+ * This program is free software; you can redistribute it and/or modify
 10+ * it under the terms of the GNU General Public License as published by
 11+ * the Free Software Foundation; either version 2 of the License, or
 12+ * (at your option) any later version.
 13+ *
 14+ * This program is distributed in the hope that it will be useful,
 15+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
 16+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 17+ * GNU General Public License for more details.
 18+ *
 19+ * You should have received a copy of the GNU General Public License along
 20+ * with this program; if not, write to the Free Software Foundation, Inc.,
 21+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 22+ * http://www.gnu.org/copyleft/gpl.html
 23+ *
2224 * @file
2325 * @ingroup Search
2426 */
Index: trunk/phase3/includes/search/SearchPostgres.php
@@ -1,23 +1,25 @@
22 <?php
3 -# Copyright (C) 2006-2007 Greg Sabino Mullane <greg@turnstep.com>
4 -# http://www.mediawiki.org/
5 -#
6 -# This program is free software; you can redistribute it and/or modify
7 -# it under the terms of the GNU General Public License as published by
8 -# the Free Software Foundation; either version 2 of the License, or
9 -# (at your option) any later version.
10 -#
11 -# This program is distributed in the hope that it will be useful,
12 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
13 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 -# GNU General Public License for more details.
15 -#
16 -# You should have received a copy of the GNU General Public License along
17 -# with this program; if not, write to the Free Software Foundation, Inc.,
18 -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 -# http://www.gnu.org/copyleft/gpl.html
20 -
213 /**
 4+ * PostgreSQL search engine
 5+ *
 6+ * Copyright © 2006-2007 Greg Sabino Mullane <greg@turnstep.com>
 7+ * http://www.mediawiki.org/
 8+ *
 9+ * This program is free software; you can redistribute it and/or modify
 10+ * it under the terms of the GNU General Public License as published by
 11+ * the Free Software Foundation; either version 2 of the License, or
 12+ * (at your option) any later version.
 13+ *
 14+ * This program is distributed in the hope that it will be useful,
 15+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
 16+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 17+ * GNU General Public License for more details.
 18+ *
 19+ * You should have received a copy of the GNU General Public License along
 20+ * with this program; if not, write to the Free Software Foundation, Inc.,
 21+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 22+ * http://www.gnu.org/copyleft/gpl.html
 23+ *
2224 * @file
2325 * @ingroup Search
2426 */

Status & tagging log