Set the selected item.

@param  string  $name

@return $this
175525
public function setSelected(string $name)
    {
        return $this->transform(function (Item $item) use ($name) {
            return $item->setSelected($name);
        });
    }
1255357
public function get(string $name): self
    {
        $this->type = self::TYPE_GET;
        $this->name = $name;
        $this->setValue(null, $this->type);

        return $this;
    }
114523
public function unsetField($name)
    {
        $this->checkFieldExist($name);
        unset($this->fields[$name], $this->types[$name]);

        return $this;
    }
710722
public function setProperty($name, $value)
    {
        if (is_null($value)) {
            unset($this->_properties[$name]);
        } else {
            $this->_properties[$name] = $value;
        }
        return $this;
    }
1002769
public function setName($name) {
    if (is_string($name)) {
      $name = Token::identifier($name);
    }
    $this->name->replaceWith($name);
    return $this;
  }
185520
public function set($name, $value)
    {
        $name = '_' . (string)$name;
        if (property_exists($this, $name) && (!is_array($this->$name))) {
            $this->$name = $value;
        }
        return $this;
    }
371952
public function unlock($name)
    {
        if (!$this->has($name)) {
            throw new ItemNotFoundException($name);
        }

        unset($this->locked[$name]);

        return $this;
    }
563117
private function setName($name)
    {
        $this->checkName($name);

        $this->name         = $name;
        $this->singleValued = in_array($name, $this->singles);

        return $this;
    }
139694
public function setPublic(string $name): Record
    {
        if ($this->indexOf($name, false)) {
            $this->public[$name] = $this->private[$name];
            unset($this->private[$name]);
        }
        return $this;
    }
551840
public function setAttribute($name, $value = null)
    {
        $this->getAttributes()->set($name, $value);
        return $this;
    }
520794
protected function set($name, $value)
    {
        if ($this->modified === null && $this->uid !== null) {
            $this->load();
        }

        $value = $this->validate($name, $value);

        if ($this->properties[$name]['value'] !== $value) {
            $this->properties[$name]['value'] = $value;
            $this->modified = true;
        }

        return $this;
    }
606727
public function setActive($name) {
		$element = $this->getElement($name);
		
		if ($element instanceof Element) {
			$element->setActive();
		}
		
		return $this;
	}
1015761
public function disable( $name )
	{
		$list = array();

		foreach( (array) $name as $item ) {
			$list[$item] = '';
		}

		$this->substitute( $list );

		return $this;
	}
931256
public function setName($name)
    {
        if (null !== $name) {
            $this->name = (string) $name;
        } else {
            $this->name = $name;
        }

        return $this;
    }
1065434
public function extending($name)
    {
        if ( $name instanceof ConfigurationItem ) {
            $name = $name->getName();
        }
        $this->extend = $name;

        return $this;
    }
632427
public function setName($name)
    {
        if (!empty($name) && ctype_print($name)) {
            $this->name = trim($name);
        }

        return $this;
    }
688624
public function set($name, $value)
    {
        $item = $this->getItemPath($name);

        return $this->config->set($item, $value);
    }