PHRAS-3519_filesystem-atomic-move

WIP
extend filesystem (no change yet)
This commit is contained in:
jygaulier
2021-10-06 18:23:52 +02:00
parent 0d07c8fb84
commit d7d731a496
30 changed files with 106 additions and 38 deletions

View File

@@ -9,9 +9,10 @@ use Alchemy\Phrasea\SearchEngine\Elastic\Structure\Field;
use Alchemy\Phrasea\SearchEngine\Elastic\Structure\Flag;
use Alchemy\Phrasea\SearchEngine\Elastic\Structure\GlobalStructure;
use Alchemy\Phrasea\SearchEngine\Elastic\Structure\MetadataHelper;
// use Alchemy\Phrasea\Utilities\Stopwatch;
use databox;
// use Alchemy\Phrasea\Utilities\Stopwatch;
class SearchEngineStructure
{
@@ -27,6 +28,19 @@ class SearchEngineStructure
$this->cache = $cache;
}
/**
* @param databox[] $databoxes
*/
public function getGlobalStructureConflictsFromDataboxes(array $databoxes)
{
$fieldsByName = [];
foreach ($databoxes as $databox) {
foreach ($databox->get_meta_structure() as $fieldStructure) {
$name = $fieldStructure->get_name();
}
}
}
/**
* @param databox[] $databoxes
*