public static function getStaticErrors() { $temp = self::$staticErrors; self::$staticErrors = array(); return $temp; }