Documentation

Search_Controller
in package

Search.

Tags
subpackage

Search

version
7.x
copyright

© 2005-2025, https://www.hostcms.ru

Table of Contents

Properties

$instance  : mixed
The singleton instances.

Methods

deleteSearchPage()  : self
Delete search page
getHashes()  : array<string|int, mixed>
Get hash from $text
indexingSearchPages()  : bool
Indexing search pages
instance()  : object
Register an existing instance as a singleton.
isEnglish()  : mixed
Check is $word English
isRussian()  : mixed
Check is $word Russian
isUkrainian()  : mixed
Check is $word Ukrainian
spellCheck()  : string
Spell check for Russian and English
_getDriverName()  : srting
Get full driver name

Properties

$instance

The singleton instances.

public static mixed $instance = array()

Methods

deleteSearchPage()

Delete search page

public static deleteSearchPage(int $site_id, int $module, int $module_value_type, int $module_value_id) : self
Parameters
$site_id : int
$module : int

module's number, 0-15

$module_value_type : int

value type, 0-15

$module_value_id : int

entity id, 0-16777216

Return values
self

getHashes()

Get hash from $text

public static getHashes(string $text[, array<string|int, mixed> $param = array() ]) : array<string|int, mixed>
Parameters
$text : string

source text

$param : array<string|int, mixed> = array()

list of hash params

Return values
array<string|int, mixed>

indexingSearchPages()

Indexing search pages

public static indexingSearchPages(array<string|int, mixed> $aSearchPages) : bool
Parameters
$aSearchPages : array<string|int, mixed>

list of search pages

Return values
bool

instance()

Register an existing instance as a singleton.

public static instance([string $name = 'default' ]) : object
Parameters
$name : string = 'default'

driver's name

Return values
object

isEnglish()

Check is $word English

public static isEnglish(string $word) : mixed
Parameters
$word : string

isRussian()

Check is $word Russian

public static isRussian(string $word) : mixed
Parameters
$word : string

isUkrainian()

Check is $word Ukrainian

public static isUkrainian(string $word) : mixed
Parameters
$word : string

spellCheck()

Spell check for Russian and English

public static spellCheck(string $word) : string
Parameters
$word : string
Return values
string

_getDriverName()

Get full driver name

protected static _getDriverName(string $driver) : srting
Parameters
$driver : string

driver name

Return values
srting

        
On this page

Search results