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