forked from bauerjj/SphinxSearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclass.sphinxfactory.php
More file actions
36 lines (27 loc) · 850 Bytes
/
class.sphinxfactory.php
File metadata and controls
36 lines (27 loc) · 850 Bytes
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
29
30
31
32
33
34
35
36
<?php
/**
* Factory class for the Sphinx Search plugin
*/
class SphinxFactory{
public static function BuildSphinx($Sender, $View){
return new SphinxSearchAdmin($Sender,$View);
}
public static function BuildObservable(){
return new SphinxObservable();
}
public static function BuildInstall($Settings){
return new SphinxSearchInstall($Settings);
}
public static function BuildSettings(){
return SphinxSearchSettings::GetInstance();
}
public static function BuildService($Settings){
return new SphinxSearchService($Settings);
}
public static function BuildWizard($Settings){
return new SphinxSearchInstallWizard($Settings);
}
public static function BuildAPI(){
return new SphinxClient(); //ships with the sphinx search engine
}
}