farm_util->updateAnimalStructSchema($target, $schemaName, $json); if (is_a($result, 'dokuwiki\plugin\farmsync\meta\StructConflict')) { $this->results[$target]['failed'][] = $result; } else { $this->results[$target]['passed'][] = $result; } } protected function preProcessEntities($struct) { $schemas = array(); foreach ($struct as $entry) { list ($operation, $schemaName) = explode('_', $entry, 2); if ($operation == 'assign') { $this->assignments[] = $schemaName; } if ($operation == 'schema') { $schemas[] = $schemaName; } } $this->assignments = $this->farm_util->getAnimalStructAssignments($this->source, $this->assignments); $schemas = $this->farm_util->getAnimalStructSchemasJSON($this->source, $schemas); array_walk($schemas, function (&$value, $key) {$value = array($key, $value);}); return $schemas; } public function doPerTargetAction($target) { $this->farm_util->replaceAnimalStructAssignments($target, $this->assignments); } function printProgressLine($target, $i, $total) { echo sprintf($this->getLang('progress:struct'), $target, $i, $total) . "
"; } protected function printResultHeading() { echo "

" . $this->getLang('heading:struct') . "

"; } }