* @package Combodo\iTop\Application\UI\Component\GlobalSearch * @internal * @since 2.8.0 */ class GlobalSearchFactory { /** * Make a GlobalSearch component with the history entries from the current user * * @return \Combodo\iTop\Application\UI\Component\GlobalSearch\GlobalSearch * @throws \CoreException * @throws \CoreUnexpectedValue * @throws \MySQLException * @throws \Exception */ public static function MakeFromUserHistory() { $aLastClasses = GlobalSearchHelper::GetLastQueries(); return new GlobalSearch(GlobalSearch::BLOCK_CODE, $aLastClasses); } }