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

Method save

src/FileRise/Support/ACL.php:751–761  ·  view source on GitHub ↗
(array $acl)

Source from the content-addressed store, hash-verified

749 return false;
750 }
751 private static function save(array $acl): bool
752 {
753 $ok = @file_put_contents(self::path(), json_encode($acl, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES), LOCK_EX) !== false;
754 if ($ok) {
755 self::$cache = $acl;
756 }
757 if ($ok) {
758 self::resetMemo();
759 }
760 return $ok;
761 }
762
763 private static function listFor(string $folder, string $key): array
764 {

Callers 9

renameTreeMethod · 0.95
deleteTreeMethod · 0.95
ensureFolderRecordMethod · 0.95
upsertMethod · 0.95
enqueueTransferJobMethod · 0.45
saveProGroupsMethod · 0.45
enqueueTransferJobMethod · 0.45
transferJobCancelMethod · 0.45

Calls 2

pathMethod · 0.95
resetMemoMethod · 0.95

Tested by

no test coverage detected