| 1 | # PurpleWiki::Search::Interface.pm | ||
| 2 | # vi:ai:sm:et:sw=4:ts=4 | ||
| 3 | # | ||
| 4 | # $Id: Interface.pm 366 2004-05-19 19:22:17Z eekim $ | ||
| 5 | # | ||
| 6 | # Copyright (c) Blue Oxen Associates 2002-2004. All rights reserved. | ||
| 7 | # | ||
| 8 | # This file is part of PurpleWiki. PurpleWiki is derived from: | ||
| 9 | # | ||
| 10 | # UseModWiki v0.92 (c) Clifford A. Adams 2000-2001 | ||
| 11 | # AtisWiki v0.3 (c) Markus Denker 1998 | ||
| 12 | # CVWiki CVS-patches (c) Peter Merel 1997 | ||
| 13 | # The Original WikiWikiWeb (c) Ward Cunningham | ||
| 14 | # | ||
| 15 | # PurpleWiki is free software; you can redistribute it and/or modify | ||
| 16 | # it under the terms of the GNU General Public License as published by | ||
| 17 | # the Free Software Foundation; either version 2 of the License, or | ||
| 18 | # (at your option) any later version. | ||
| 19 | # | ||
| 20 | # This program is distributed in the hope that it will be useful, | ||
| 21 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 22 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 23 | # GNU General Public License for more details. | ||
| 24 | # | ||
| 25 | # You should have received a copy of the GNU General Public License | ||
| 26 | # along with this program; if not, write to the | ||
| 27 | # Free Software Foundation, Inc. | ||
| 28 | # 59 Temple Place, Suite 330 | ||
| 29 | # Boston, MA 02111-1307 USA | ||
| 30 | # | ||
| 31 | |||
| 32 | package PurpleWiki::Search::Interface; | ||
| 33 | |||
| 34 | use strict; | ||
| 35 | use PurpleWiki::Config; | ||
| 36 | |||
| 37 | our $VERSION; | ||
| 38 | $VERSION = sprintf("%d", q$Id: Interface.pm 366 2004-05-19 19:22:17Z eekim $ =~ /\s(\d+)\s/); | ||
| 39 | |||
| 40 | sub new { | ||
| 41 | my $class = shift; | ||
| 42 | my $self = {}; | ||
| 43 | |||
| 44 | my %params = @_; | ||
| 45 | |||
| 46 | $self->{config} = PurpleWiki::Config->instance(); | ||
| 47 | |||
| 48 | bless ($self, $class); | ||
| 49 | |||
| 50 | return $self; | ||
| 51 | } | ||
| 52 | |||
| 53 | # Where the searching is done. | ||
| 54 | sub search { | ||
| 55 | my $self = shift; | ||
| 56 | my $query = shift; | ||
| 57 | my @results; | ||
| 58 | |||
| 59 | return @results; | ||
| 60 | } | ||
| 61 | |||
| 62 | sub config { | ||
| 63 | my $self = shift; | ||
| 64 | return $self->{config}; | ||
| 65 | } | ||
| 66 | |||
| 67 | 1; | ||
| 68 | |||
| 69 | __END__ |