/[drupal]/contributions/modules/semantic_search/includes/semantic_search.search.navigation.inc
ViewVC logotype

Contents of /contributions/modules/semantic_search/includes/semantic_search.search.navigation.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download) (as text)
Tue Jun 5 06:37:07 2007 UTC (2 years, 5 months ago) by hendler
Branch: MAIN
CVS Tags: HEAD
Branch point for: DRUPAL-5
File MIME type: text/x-php
adding files from our SVN
1 <?php
2 /*
3 * Copyright (C) May 2006 Jonathan Hendler
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (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
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
18 *
19 * The authors can be contacted at:
20 * - jonathan [at] civicactions (dot) com
21 *
22 * @license http://www.affero.org/oagpl.html
23 * @link http://drupal.org/project/semantic_search
24 */
25
26 /**
27 * provides functions for building search navigation elements
28 * */
29 class NinaNav{
30 /**
31 * creates a link that can be used to bookmark or preserver state of th search
32 * */
33 public static function search_link(&$search_params, $append = '') {
34 return url(SEMANTIC_SEARCH_BASE_URL, SONIA_URL_H :: makeFullURLFromSearch($search_params) . $append, null, true);
35 }
36
37 /**
38 * creates a link to reset the search
39 * */
40 public static function search_reset_link(&$sonia) {
41 // dbg(SEMANTIC_SEARCH_BASE_URL,'SEMANTIC_SEARCH_BASE_URL');
42 return url(SEMANTIC_SEARCH_BASE_URL, SONIA_URL_H :: restartSearchURL( ), null, true);
43 }
44
45 }
46

  ViewVC Help
Powered by ViewVC 1.1.2