public static function listenToSimulateNewRequestEvent(sfEvent $event) { self::$global = false; self::$globalCache = false; self::$currentPage = null; self::$savedCurrentPage = null; self::$globalButtons = false; self::$allowSlotEditing = true; }
/** * Must reset ALL static variables to their initial state * @param sfEvent $event */ public static function listenToSimulateNewRequestEvent(sfEvent $event) { aTools::$global = false; aTools::$globalCache = false; aTools::$currentPage = null; aTools::$pageStack = array(); aTools::$globalButtons = false; aTools::$allowSlotEditing = true; aTools::$realUrl = null; aTools::$jsCalls = array(); aNavigation::simulateNewRequest(); }