include/SugarSearchEngine/SugarSearchEngineFactory.php

Show: inherited
Table of Contents

\SugarSearchEngineFactory

Package: SugarCRM

Search Engines drivers factory class

Api
 

Properties

Propertypublic\SugarSearchEngineInterface  $_instance= ''
static

Methods

methodprivate__construct( ) : void

Singleton pattern

methodpublicgetFTSEngineNameFromConfig( ) : void
static

methodpublicgetInstance(  $name = '',  $config = array(),  $useDefaultWhenFTSDown = false ) : \SugarSearchEngineInterface
static

getInstance()

Connect to the backend engine and store for later use

Parameters
Name Type Description
$name
$config
$useDefaultWhenFTSDown
Returns
Type Description
\SugarSearchEngineInterface
Details
Static
 
methodprotectedloadSearchEngineFromLocation(  $filePath,  $config ) : bool
static

Parameters
Name Type Description
$filePath
$config
Returns
Type Description
bool
Details
Static
 
methodprotectedsetupEngine( string $name = '', array $config = array() ) : bool
static

Parameters
Name Type Description
$name string
$config array
Returns
Type Description
bool
Details
Static
 
Documentation was generated by DocBlox 0.18.1.