(string $id, bool $persistSession = false, bool $allowDisabled = false)
| 82 | } |
| 83 | |
| 84 | public static function setActiveId(string $id, bool $persistSession = false, bool $allowDisabled = false): void |
| 85 | { |
| 86 | self::$activeId = $id; |
| 87 | self::$activeSource = null; |
| 88 | self::$overrideId = $id; |
| 89 | self::$overrideAllowDisabled = $allowDisabled ? true : null; |
| 90 | self::$initialized = false; |
| 91 | if ($persistSession && session_status() === PHP_SESSION_ACTIVE) { |
| 92 | $_SESSION['active_source'] = $id; |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | public static function getActiveSource(): array |
| 97 | { |
no outgoing calls
no test coverage detected