SproutCMS

This is the code documentation for the SproutCMS project

class SearchHandler

Defines a table which can be searched against using the front-end search

Source code (11 results)

/config/sprout.php   Highlighted file source

Line 7: use Sprout\Helpers\SearchHandler;

/config/sprout.php   Highlighted file source

Line 7: use Sprout\Helpers\SearchHandler;

/sprout/Controllers/AdvancedSearchController.php   Highlighted file source

Line 27: use Sprout\Helpers\SearchHandler;
Line 102: $config_handlers = Register::getSearchHandlers();
Line 105: if (! $ch instanceof SearchHandler) throw new Exception("Invalid SearchHandler registered");

/sprout/Controllers/AdvancedSearchController.php   Highlighted file source

Line 27: use Sprout\Helpers\SearchHandler;
Line 102: $config_handlers = Register::getSearchHandlers();
Line 105: if (! $ch instanceof SearchHandler) throw new Exception("Invalid SearchHandler registered");

/sprout/Controllers/SearchController.php   Highlighted file source

Line 24: use Sprout\Helpers\SearchHandler;
Line 48: $config_handlers = Register::getSearchHandlers();
Line 59: $search_handlers[] = new SearchHandler($ch[0], $ch[1]);
Line 60: } else if ($ch instanceof SearchHandler) {
Line 63: throw new Exception("Invalid SearchHandler registered");

/sprout/Controllers/SearchController.php   Highlighted file source

Line 24: use Sprout\Helpers\SearchHandler;
Line 48: $config_handlers = Register::getSearchHandlers();
Line 59: $search_handlers[] = new SearchHandler($ch[0], $ch[1]);
Line 60: } else if ($ch instanceof SearchHandler) {
Line 63: throw new Exception("Invalid SearchHandler registered");

/sprout/Helpers/Register.php   Highlighted file source

Line 630: * @param array $where Optional list of where clauses @see SearchHandler->addWhere()
Line 633: public static function searchHandler($class, $table, $where = [])
Line 635: $handler = new SearchHandler($table, $class);
Line 648: * Return list of SearchHandler objects
Line 650: * @return array List of SearchHandler instances
Line 652: public static function getSearchHandlers()

/sprout/Helpers/Register.php   Highlighted file source

Line 630: * @param array $where Optional list of where clauses @see SearchHandler->addWhere()
Line 633: public static function searchHandler($class, $table, $where = [])
Line 635: $handler = new SearchHandler($table, $class);
Line 648: * Return list of SearchHandler objects
Line 650: * @return array List of SearchHandler instances
Line 652: public static function getSearchHandlers()

/sprout/Helpers/Search.php   Highlighted file source

Line 198: * @param array $search_handlers Search handlers to use. Expects an array of SearchHandler objects.

/sprout/Helpers/Search.php   Highlighted file source

Line 198: * @param array $search_handlers Search handlers to use. Expects an array of SearchHandler objects.

A total of 33 lines in 11 files were found