Cheetah
Public Member Functions | Public Attributes | List of all members
ChWsbSearch Class Reference

Public Member Functions

 __construct ($aChoice='')
 
 response ()
 
 getEmptyResult ()
 

Public Attributes

 $aClasses = array()
 
 $aChoice = array()
 

Detailed Description

Search class for different content

Allows present content in main search area for all modules

To add taking part content from your module to search area you need add a record to sys_objects_search table:

ID - autoincremented id for internal usage ObjectName - your unique module name, with vendor prefix, lowercase and spaces are underscored Title - language key for module's choicer in global search form ClassName - class name which is responsible for search process ad showing result for found results ClassPath - file where your ClassName is stored (if class is stored in template folder then you can use key {tmpl})

For using this class you should have unit of ChWsbSearchResult class (see description below) with method processing which is responsible for processing of search request

Example of usage can be seen in the default Cheetah's modules (photos, sounds, events, sites, etc)

Memberships/ACL: Doesn't depend on user's membership.

Alerts: no alerts available

Definition at line 38 of file ChWsbSearch.php.

Constructor & Destructor Documentation

◆ __construct()

ChWsbSearch::__construct (   $aChoice = '')

Constructor $aChoice - array of choosen classes (will take a part only existing in sys_objects_search table)

Definition at line 48 of file ChWsbSearch.php.

Member Function Documentation

◆ getEmptyResult()

ChWsbSearch::getEmptyResult ( )

Definition at line 87 of file ChWsbSearch.php.

◆ response()

ChWsbSearch::response ( )

Definition at line 73 of file ChWsbSearch.php.

Member Data Documentation

◆ $aChoice

ChWsbSearch::$aChoice = array()

Definition at line 41 of file ChWsbSearch.php.

◆ $aClasses

ChWsbSearch::$aClasses = array()

Definition at line 40 of file ChWsbSearch.php.


The documentation for this class was generated from the following file: