[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * @package Joomla.Language 5 * 6 * @copyright (C) 2011 Open Source Matters, Inc. <https://www.joomla.org> 7 * @license GNU General Public License version 2 or later; see LICENSE.txt 8 9 * @phpcs:disable Squiz.Classes.ValidClassName.NotCamelCaps 10 11 * @phpcs:disable PSR1.Classes.ClassDeclaration.MissingNamespace 12 */ 13 14 // phpcs:disable PSR1.Files.SideEffects 15 \defined('_JEXEC') or die; 16 // phpcs:enable PSR1.Files.SideEffects 17 18 /** 19 * en-GB localise class. 20 * 21 * @since 1.6 22 */ 23 abstract class En_GBLocalise 24 { 25 /** 26 * Returns the potential suffixes for a specific number of items 27 * 28 * @param integer $count The number of items. 29 * 30 * @return array An array of potential suffixes. 31 * 32 * @since 1.6 33 */ 34 public static function getPluralSuffixes($count) 35 { 36 if ($count == 0) { 37 return array('0'); 38 } elseif ($count == 1) { 39 return array('ONE', '1'); 40 } else { 41 return array('OTHER', 'MORE'); 42 } 43 } 44 45 /** 46 * Returns the ignored search words 47 * 48 * @return array An array of ignored search words. 49 * 50 * @since 1.6 51 */ 52 public static function getIgnoredSearchWords() 53 { 54 return array('and', 'in', 'on'); 55 } 56 57 /** 58 * Returns the lower length limit of search words 59 * 60 * @return integer The lower length limit of search words. 61 * 62 * @since 1.6 63 */ 64 public static function getLowerLimitSearchWord() 65 { 66 return 3; 67 } 68 69 /** 70 * Returns the upper length limit of search words 71 * 72 * @return integer The upper length limit of search words. 73 * 74 * @since 1.6 75 */ 76 public static function getUpperLimitSearchWord() 77 { 78 return 20; 79 } 80 81 /** 82 * Returns the number of chars to display when searching 83 * 84 * @return integer The number of chars to display when searching. 85 * 86 * @since 1.6 87 */ 88 public static function getSearchDisplayedCharactersNumber() 89 { 90 return 200; 91 } 92 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |