Set the value of Id / id
@param $value string
@return ContentItem
323496
public function setId(string $value) : ContentItem
    {

        if ($this->data['id'] !== $value) {
            $this->data['id'] = $value;
            $this->setModified('id');
        }

        return $this;
    }
754200
public function set($item, $value = null)
    {
        if (is_array($item)) {
            foreach($item as $key => $val){
                $this->custom[$key] = $val;
            }
        } else {
            $this->custom[$item] = $value;
        }
        return $this;
    }
855780
public function setRootImage( $value )
    {
        $content = $this->getDependentContent();

        if ( $content )
        {
            $content->leadImage = $value;
        }

        return $this;
    }
899160
public function setValue($value)
    {
        if (!is_array($value)) {
            $value = [];
        }
        foreach ($value as $key => $value) {
            $element = $this->getElement($key);
            if (!$element) {
                $this->setElement($key, ['value' => $value]);
            } else {
                $element->setValue($value);
            }
        }

        return $this;
    }
567123
public function removeDealerContentId($value)
    {
        $targetArray = array();
        foreach ($this->getDealerContentIds() as $element) {
            if ($element != $value) {
                $targetArray []= $element;
            }
        }
        $this->setDealerContentIds($targetArray);

        return $this;
    }
780163
public function setId(int $value) : Setting
    {

        if ($this->data['id'] !== $value) {
            $this->data['id'] = $value;
            $this->setModified('id');
        }

        return $this;
    }
474857
public function addDealerContactId($value)
    {
        $currentArray = $this->getDealerContactIds();
        $currentArray []= $value;
        $this->setDealerContactIds($currentArray);

        return $this;
    }
872722
public function setContentInset($value) {
    if (is_object($value) && !$value instanceof ContentInset) {
      $this->triggerError('Object not of type ContentInset');
    }
    else {
      $this->contentInset = $value;
    }
    return $this;
  }
799810
public function setIsHidden(int $value) : User
    {

        if ($this->data['is_hidden'] !== $value) {
            $this->data['is_hidden'] = $value;
            $this->setModified('is_hidden');
        }

        return $this;
    }
1111968
public function setCaption($value) {
		if (PhalconUtils::startsWith($value, "-")) {
			$this->class="dropdown-header";
			$this->role="presentation";
			$this->_template='<li id="%identifier%" class="%class%" role="%role%">%content%</li>';
			if ($value==="-") {
				$this->class="divider";
			}
			$value=substr($value, 1);
		}
		$this->content=$value;
		return $this;
	}
251067
public function set($name, $value)
    {
        //If it's an object, save its ID as the parameter
        if(is_object($value) && method_exists($value, 'getId'))
        {
            $this->parameters[$name] = $value->getId();
        }

        //Just save the parameter
        else
        {
            $this->parameters[$name] = $value;
        }

        return $this;
    }
148868
public function setValue( $value ) {
		$this->value = $this->cleanUpValue( $value );
		$this->input->setValue( $this->value );
		return $this;
	}
586931
protected function setValue($value)
    {
        if (!isset($this->value) || null === $this->value) {
            $this->value = $value;
        }

        return $this;
    }
656390
public function setValue(string $value = null) : Element
    {
        if (!is_null($value)) {
            $tmp = preg_replace('/[^\d]/', '', $value);
            if (strlen($tmp)) {
                $value = $tmp;
                if ($value{0} != '0') {
                    $value = "0$value";
                }
            }
        }
        return parent::setValue($value);
    }
523151
public function setValue($value)
    {
        $this->value = $value;
        if (is_string($value) && !empty($value)) {
            $value = Convert::json2array($value);
        } elseif (!is_array($value)) {
            $value = array($value);
        }

        $pattern = "/^{$this->getName()}\[(.*)\]$/";
        foreach ($this->children as $c) {
            $title = $c->getName();
            preg_match($pattern, $title, $matches);
            if (!empty($matches[1]) && isset($value[$matches[1]])) {
                $c->setValue($value[$matches[1]]);
            }
        }

        return $this;
    }
1144971
public function setValue($value)
    {
        $this->hash = sha1("$value");
        $this->value = $value;
        $this->valueSet = true;
        return $this;
    }
1044992
public function setValue($value=null) :self {
		// append by default or replace html
		$this->attributes['value'] = Format::htmlSafe($value);
		// return self
		return($this);
	}