From adc12a8cd819e532f8500ffd8ea9d1271200c632 Mon Sep 17 00:00:00 2001 From: rangi Date: Sun, 7 Mar 2004 01:49:34 +0000 Subject: [PATCH] Starting on C4::Query, Currently doesnt do anything much at all. Im building a skeleton module then ill flesh it out --- C4/Query.pm | 110 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 110 insertions(+) create mode 100755 C4/Query.pm diff --git a/C4/Query.pm b/C4/Query.pm new file mode 100755 index 0000000000..83c7ad6b2c --- /dev/null +++ b/C4/Query.pm @@ -0,0 +1,110 @@ +package C4::Query; + +# Copyright 2004 Katipo Communications +# +# This file is part of Koha. +# +# Koha 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. +# +# Koha 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 +# Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place, +# Suite 330, Boston, MA 02111-1307 USA + +# $Id$ + +use 5.006; +use strict; +use warnings; + +require Exporter; +use AutoLoader qw(AUTOLOAD); + +our @ISA = qw(Exporter); + +our %EXPORT_TAGS = ( + 'all' => [ + qw( + + ) + ] +); + +our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } ); + +our @EXPORT = qw( + +); + +our $VERSION = do { my @v = '$Revision$' =~ /\d+/g; + shift (@v) . "." . join ( "_", map { sprintf "%03d", $_ } @v ); +}; + +# Preloaded methods go here. + +sub new { + my $class = shift; + my $search_string = shift; # high level query to construct search from + my $self = {}; + $self->{"search_string"} = $search_string; + bless $self, $class; + return $self; +} + +sub count { + my $self = shift; + +} + +sub results { + my $self = shift; + +} + +# Autoload methods go after =cut, and are processed by the autosplit program. + +1; +__END__ + +# Below is stub documentation for your module. You better edit it! + +=head1 NAME + +C4::Query + +=head1 SYNOPSIS + + use C4::Query; + + +=head1 DESCRIPTION + +=head2 METHODS + +=item new + +$query = new C4::Query("title:bob marley"); + + + +=head2 EXPORT + +None by default. + + +=head1 AUTHOR + +Koha Development Team + +=head1 SEE ALSO + +L. + +=cut + -- 2.39.2