File: ForumMLGroupSearchEngine.class.php

package info (click to toggle)
fusionforge 5.3.2%2B20141104-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 60,472 kB
  • sloc: php: 271,846; sql: 36,817; python: 14,575; perl: 6,406; sh: 5,980; xml: 4,294; pascal: 1,411; makefile: 911; cpp: 52; awk: 27
file content (28 lines) | stat: -rw-r--r-- 623 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
/**
 * Wiki Search Engine for GForge
 *
 * Copyright 2006 (c) Alain Peyrat
 *
 * @version $Id: GroupSearchEngine.class,v 1.2 2004/12/12 23:34:46 gsmet Exp $
 */

require_once $gfwww.'search/include/engines/GroupSearchEngine.class.php';

class ForumMLGroupSearchEngine extends GroupSearchEngine {

	function ForumMLGroupSearchEngine() {
		$this->GroupSearchEngine(SEARCH__TYPE_IS_LIST,
					 'ForumMLHtmlSearchRenderer',
					 _('ForumML'));
	}

	function isAvailable($parameters) {
		if (parent::isAvailable($parameters)) {
			if ($this->Group->usesPlugin('forumml')) {
				return true;
			}
		}
		return false;
	}
}