MCPcopy Create free account
hub / github.com/error311/FileRise / setActiveId

Method setActiveId

src/FileRise/Storage/SourceContext.php:84–94  ·  view source on GitHub ↗
(string $id, bool $persistSession = false, bool $allowDisabled = false)

Source from the content-addressed store, hash-verified

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 {

Callers 15

isEmpty.phpFile · 0.80
capabilities.phpFile · 0.80
saveGrants.phpFile · 0.80
getGrants.phpFile · 0.80
withSourceContextMethod · 0.80
withSourceContextMethod · 0.80
deleteFolderMethod · 0.80
moveFolderMethod · 0.80
handleUploadMethod · 0.80
removeChunksMethod · 0.80
checkExistingMethod · 0.80
resumableCleanupMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected