Sets data

@param mixed $value The initial value

@return Eden_String_Index
345380
public function set($value = null) 
    {
        Eden_String_Argument::i()->test(1, 'scalar', 'null');
        
        if (is_null($value)) {
            $value = '';
        }
        
        $this->__construct($value);
        
        return $this;
    }
703214
public function setValue($value)
    {
        if (null === $value) {
            $value = $this->getArgument('default');
        }

        $this->value = ($this->needsSanitization())
            ? $this->sanitizeWithCallback($value)
            : $value;

        return $this;
    }
134887
public function setValue( $value )
    {
        if ( $value instanceof Traversable )
        {
            $value = ArrayUtils::iteratorToArray( $value );
        }

        return parent::setValue( (array) $value );
    }
1211550
public function setValue( $value ) {
		if ( strtolower( $this->tag ) === 'textarea' ) {
			$this->clearContent();
			$this->appendContent( $value );
		} else {
			$this->setAttributes( [ 'value' => $value ] );
		}
		return $this;
	}
362751
public function setValue(string $value = null) : Element
    {
        $this->value = $value;
        if (isset($this->model)) {
            $this->model->{$this->attributes['name']} = $value;
        }
        return $this;
    }
325866
public function setScope(string $value) : Setting
    {

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

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

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

        return $this;
    }
517435
public function set($name, $value = null)
	{
		is_null($name) or \Arr::set($this->data, $name, $value);

		return $this;
	}
815073
public function set($value = null) 
    {
        if (is_null($value)) {
            $value = array();
        }
        
        if (!is_array($value)) {
            $value = func_get_args();
        }
        
        $this->__construct($value);
        
        return $this;
    }
1370164
public function setFirstName(?string $value) : Contact
    {

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

        return $this;
    }
734781
public function set(string $key, $value): Definition
    {
        $this->data[$key] = $value;

        return $this;
    }
1028737
public function setValue($value)
    {
        $this->checked = $value;
        if ((null !== $this->checked) && ($this->hasChildren())) {
            foreach ($this->childNodes as $child) {
                if ($child instanceof Input\Radio) {
                    if ($child->getValue() == $this->checked) {
                        $child->check();
                    } else {
                        $child->uncheck();
                    }
                }
            }
        }
        return $this;
    }
907955
public function setValue( $value )
   {

      if ( $this->_value === $value ) { return $this; }

      $this->_value = $value;

      $this->notify( [ 'property' => 'value' ] );

      return $this;

   }
988394
public function setValue($value)
    {
        if (!is_array($value)) {
            $value = [];
        }
        foreach ($value as $key => $value) {
            if (!$this->getElement($key)) {
                continue;
            }
            $this->getElement($key)->setValue($value);
        }

        return $this;
    }
1030203
public function setContentId(string $value) : SearchIndex
    {

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

        return $this;
    }
1142591
public function setPhone(?string $value) : Contact
    {

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

        return $this;
    }
158671
public function setInstances(int $value) : SearchIndex
    {

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

        return $this;
    }