En_GBLocalise::getLowerLimitSearchWord()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * @copyright  Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.
4
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
5
 */
6
7
/**
8
 * en-GB localise class
9
 *
10
 * @since  1.0
11
 */
12
abstract class En_GBLocalise
13
{
14
	/**
15
	 * Returns the potential suffixes for a specific number of items
16
	 *
17
	 * @param   integer  $count  The number of items.
18
	 *
19
	 * @return  array  An array of potential suffixes.
20
	 *
21
	 * @since   1.0
22
	 */
23
	public static function getPluralSuffixes($count)
24
	{
25
		if ($count == 0)
26
		{
27
			$return = array('0');
28
		}
29
		elseif ($count == 1)
30
		{
31
			$return = array('1');
32
		}
33
		else
34
		{
35
			$return = array('MORE');
36
		}
37
38
		return $return;
39
	}
40
41
	/**
42
	 * Returns the ignored search words
43
	 *
44
	 * @return  array  An array of ignored search words.
45
	 *
46
	 * @since   1.0
47
	 */
48
	public static function getIgnoredSearchWords()
49
	{
50
		$search_ignore = array();
51
		$search_ignore[] = "and";
52
		$search_ignore[] = "in";
53
		$search_ignore[] = "on";
54
55
		return $search_ignore;
56
	}
57
58
	/**
59
	 * Returns the lower length limit of search words
60
	 *
61
	 * @return  integer  The lower length limit of search words.
62
	 *
63
	 * @since   1.0
64
	 */
65
	public static function getLowerLimitSearchWord()
66
	{
67
		return 3;
68
	}
69
70
	/**
71
	 * Returns the upper length limit of search words
72
	 *
73
	 * @return  integer  The upper length limit of search words.
74
	 *
75
	 * @since   1.0
76
	 */
77
	public static function getUpperLimitSearchWord()
78
	{
79
		return 20;
80
	}
81
82
	/**
83
	 * Returns the number of chars to display when searching
84
	 *
85
	 * @return  integer  The number of chars to display when searching.
86
	 *
87
	 * @since   1.0
88
	 */
89
	public static function getSearchDisplayedCharactersNumber()
90
	{
91
		return 200;
92
	}
93
}
94