Reset the mapping between external identifier and local nodes

@param string $preset
@param string $parts
541863
public function initCommand($preset, $parts = '')
    {
        $parts = Arrays::trimExplode(',', $parts);
        $presetSettings = $this->loadPreset($preset);
        array_walk($presetSettings['parts'], function ($partSetting, $partName) use ($preset, $parts) {
            $this->outputLine();
            $this->outputPartTitle($partSetting, $partName);

            if ($parts !== array() && !in_array($partName, $parts)) {
                $this->outputLine('<error>~</error> Skipped');
                return;
            }

            if (!isset($partSetting['importerClassName'])) {
                $this->outputLine('<error>Missing importerClassName in the current preset part (%s/%s), check your settings</error>', [$preset, $partName]);
                return;
            }

            $identifier = $partSetting['importerClassName'] . '@' . $preset . '/' . $partName;
            /** @var RecordMapping $recordMapper */
            foreach ($this->recordMapperRepository->findByImporterClassName($identifier) as $recordMapper) {
                $this->recordMapperRepository->remove($recordMapper);
            }
        });
        $vault = new Vault($preset);
        $vault->flush();
    }
1054697
protected function setUriParts(array $parts)
    {
        foreach ($parts as $key => $value) {
            if (!method_exists($this, "set$key")) {
                continue;
            }
            $this->{"set$key"}($value);
        }
    }
825810
public function setCharset($charset)
    {
        parent::setCharset($charset);
        if (isset($this->paramEncoder)) {
            $this->paramEncoder->charsetChanged($charset);
        }
    }
692557
function setSection( $params )
    {
        $location = $params['location'];
        $sectionName = $params['section_name'];

        $sectionID = $this->sectionIDbyName( $params );
        if( $sectionID )
        {
            $rootNode = $this->nodeByUrl( $params );
            if( is_object( $rootNode ) )
            {
                eZContentObjectTreeNode::assignSectionToSubTree( $rootNode->attribute( 'node_id' ), $sectionID );
            }
        }

    }
924998
public function resetDQLParts($parts = null)
    {
        if (is_null($parts)) {
            $parts = array_keys($this->_dqlParts);
        }

        foreach ($parts as $part) {
            $this->resetDQLPart($part);
        }

        return $this;
    }
175404
protected function extractLanguage(array &$parts)
    {
        if (!empty($parts) && in_array($parts[0], Config::get('languages.possible', ['en']))) {
            // We found the language, so set it as current language
            $this->language = array_shift($parts);
        } else {
            $this->language = Config::get('languages.default', 'en');
        }
    }
1072151
public function setComponents($components)
	{
	    if ($components) foreach ($components as $k => $v) {
	        $v = static::formatDefinition($k, $v);
	        if (is_numeric($k)) {
	            $k = static::formatName($v);
	        }
	        $this->set($k, $v);
	    }
	}
602668
protected function set_preset() {

		// Set preset from the choices.
		$this->preset = $this->choices;

		// We're using a flat select.
		foreach ( $this->choices as $key => $args ) {
			$this->choices[ $key ] = $args['label'];
		}
	}
1214343
public function setParts(array $parts)
    {
        if (count($parts) > 1) {
            throw new \InvalidArgumentException('Only one value allowed');
        }
        if (isset($parts[0]) && $parts[0] instanceof DateTimeInterface) {
            $this->setDateTime($parts[0]);
        } else {
            parent::setParts($parts);
        }
    }
43602
def setParts( self, parts ):
        
        self.setText(self.separator().join(map(str, parts)))
263548
protected function fixUrlQuery(array $parts)
    {
        $server = &$this->server;

        // reset
        $server['QUERY_STRING'] = '';

        // parse query string
        $get = [];
        if (isset($parts['query'])) {
            $server['QUERY_STRING'] = $parts['query'];
            parse_str($parts['query'], $get);
        }

        // request
        $this->request = $_COOKIE;
        switch ($server['REQUEST_METHOD']) {
            case 'POST':
                $this->request = array_replace($this->request, $_POST, $get);
                break;
            default:
                $this->request = array_replace($this->request, $get);
                break;
        }
    }
1009254
public function getBinds($parts = [], $clear = false)
    {
        $binds = [];

        if (!is_array($parts)) {
            $parts = [$parts];
        }

        if (!$parts) {
            $parts = array_keys($this->bind);
        }

        foreach ($parts as $part) {
            if (!isset($this->bind[$part])) {
                continue;
            }

            foreach ($this->bind[$part] as $key => $bind) {
                $binds[] = $bind;
                if ($clear) {
                    unset($this->bind[$part][$key]);
                }
            }
        }

        return $binds;
    }
1090722
protected function fixUrlPath(array &$parts)
    {
        $server = &$this->server;
        if (isset($parts['path'])) {
            $parts['path'] = rawurldecode($parts['path']);

            // fix PATH_INFO
            if (isset($server['PATH_INFO'])) {
                $uri = explode(
                    $server['PATH_INFO'],
                    $server['REQUEST_URI']
                );
                $server['PATH_INFO'] =
                    str_replace($uri[0], '', $parts['path']);
            } else {
                $server['PATH_INFO'] = $parts['path'];
            }

            // fix REQUEST_URI
            $server['REQUEST_URI'] = $parts['path'] .
                (
                    empty($server['QUERY_STRING']) ? '' :
                    ('?' . $server['QUERY_STRING'])
                );
        }
    }
661645
public function append(string ...$parts): self
    {
        array_unshift($parts, $this->path);

        return self::make(...$parts);
    }
1101831
protected function skipIgnoredParts(array $parts): int
    {
        $k = count($parts);

        while (--$k >= 0) {
            if (!$this->isIgnoredPart($parts[$k])) {
                break;
            }
        }

        return $k;
    }
1192534
public function prepend(string ...$parts): self
    {
        array_push($parts, $this->path);

        return self::make(...$parts);
    }
1105700
public void setTypeParts(String[] parts) {
        this.typeFinal = parts[0] != null;
        this.typeScope = parts[1];
        this.typeFull = parts[2];
        this.typeRaw = parts[3];
        if (parts[8] != null) {
            this.typeGenericName = new String[] {parts[4], parts[6], parts[8]};
            this.typeGenericExtends = new String[3];
            this.typeGenericExtends[0] = parts[5] != null ? parts[5] : "";
            this.typeGenericExtends[1] = parts[7] != null ? parts[7] : "";
            this.typeGenericExtends[2] = parts[9] != null ? parts[9] : "";
        } else if (parts[6] != null) {
            this.typeGenericName = new String[] {parts[4], parts[6]};
            this.typeGenericExtends = new String[2];
            this.typeGenericExtends[0] = parts[5] != null ? parts[5] : "";
            this.typeGenericExtends[1] = parts[7] != null ? parts[7] : "";
        } else if (parts[4] != null) {
            this.typeGenericName = new String[] {parts[4]};
            this.typeGenericExtends = new String[1];
            this.typeGenericExtends[0] = parts[5] != null ? parts[5] : "";
        } else {
            this.typeGenericName = new String[0];
            this.typeGenericExtends = new String[0];
        }
    }