* @package Combodo\iTop\Application\UI\Base\Component\QuickCreate * @internal * @since 3.0.0 */ class QuickCreateFactory { /** * Make a QuickCreate component with the last classes from the current user * * @return \Combodo\iTop\Application\UI\Base\Component\QuickCreate\QuickCreate * @throws \CoreException * @throws \CoreUnexpectedValue * @throws \MySQLException */ public static function MakeFromUserHistory() { $aLastClasses = QuickCreateHelper::GetLastClasses(); return new QuickCreate($aLastClasses, QuickCreate::BLOCK_CODE); } }