Sets a Value by its Key.
@access		public
@param		string		$key		Column Key
@param		string		$value		Column Value to set
@return		string
772327
public function offsetSet( $key, $value )
	{
		if( !isset( $this->____pairs ) )
			$this->getPairs();
		if( !array_key_exists( $key, $this->____pairs ) )
			throw new Exception( 'Pair Key "'.$key.'" is not set in Row.' );
		$this->____pairs[$key]	= $value;
	}
1081980
public function set($key, $value)
    {
        $key = trim($key, '.');
        if (strpos($key, '.') !== false) {
            $array =& $this->_items;
            foreach (explode('.', $key) as $v)
                $array =& $array[$v];
            $array = $value;
        } else {
            $this->_items[$key] = $value;
        }
    }
522903
function set($key, $value) {
        if(!$this->enabled) {
            return $this;
        }
        
        parent::set($key, $value);
        return $this;
    }
73232
public function set($key, $value)
    {
        if (strpos($key, '.') !== false) {
            return $this->setTraverse($key, $value);
        }
        $this->values[$key] = $value;
        return $this;
    }
1099183
public static function set(string $key, $value)
    {
        return self::getInstance()->getConfig()->set($key, $value);
    }
1178751
public function set($key, $value) {
        setvalr(trim($key), $this->data, $value);
        return $value;
    }
138877
public function setProperty($key, $value)
    {
        $oldValue = null;
        if (isset($this->properties[$key])) {
            $oldValue = $this->properties[$key];
        }
        $this->properties[$key] = $value;

        return $oldValue;
    }
771687
public static function set($key, $value) {

		if(false === is_string($key)) {
			return trigger_error(sprintf('Argument 1 passed to %s() must be of the type string, "%s" given', __METHOD__, gettype($key)), E_USER_ERROR);
		}

		static :: $data[$key] = $value;
	}
1076593
public function setParameter($key, $value)
    {
        if (!$this->parameters) {
            $this->parameters = array();
        }

        $this->parameters[$key] = $value;

        return $this;
    }
824281
public function set($key, $value)
    {
        $keyExp = explode('.', $key);

        $row = $this->database
            ->table($this->config['db_table'])
            ->where('setting_key', $keyExp[0])
            ->first(['setting_value']);

        if (is_null($row))
        {
            $newKeyExp = array_slice($keyExp, 1);

            $newValue = $value;

            // if want to set a value directly from a dot keys
            if (count($newKeyExp) > 0)
            {
                // we should compose a new array with keys from setter key
                $newValue = build_array($newKeyExp, $value);
            }


            $this->database->table($this->config['db_table'])
                ->insert([
                    'setting_key'   => $keyExp[0],
                    'setting_value' => ( ! empty($newValue) ? json_encode($newValue) : null),
                ]);
        }
        else
        {
            $setting_value = json_decode($row->setting_value, true);
            set_nested_array_value($setting_value, $keyExp, $value);

            $this->database->table($this->config['db_table'])
                ->where('setting_key', $keyExp[0])
                ->update([
                    'setting_value' => json_encode($setting_value)
                ]);
        }


        $this->cache->set($key, $value);

        return $value;
    }
24681
public function set($key, $value)
    {
        if (is_bool($value)) {
            $value = $value ? 'true' : 'false';
        }

        return parent::set($key, $value);
    }
59756
public function set($key, $value)
    {
        $value = $this->plain($value);
        $method = 'set'.$key;

        if (method_exists($this, $method)) {
            return $this->$method($value);
        }

        return $this->metas[$key] = self::cut($value, $key);
    }
1009401
public function set($key, $value)
    {
        $cont = clone $this;
        $cont->doSet($key, $this->recursiveClone($value));

        return $cont;
    }
1365503
public function set($key, $value = null)
    {
        if (is_array($key))
        {
            foreach ($key as $name => $value)
            {
                $this->_data[$name] = $value;
            }
        }
        else
        {
            $this->_data[$key] = $value;
        }

        return $this;
    }
223029
public function set($key, $value)
    {
        if (null === $value) {
            return $this->remove($key);
        }
        $this->clearRemoval($key);

        $original = $this->getOriginal($key);

        if ($value instanceof \stdClass && $original instanceof \stdClass) {
            if ($value == $original) {
                $this->clearChange($key);
            } else {
                $this->current[$key] = $value;
            }
            return $this;
        }

        if ($value === $original) {
            $this->clearChange($key);
        } else {
            if (($value instanceof \DateTime && $original instanceof \DateTime) && ($value->getTimestamp() === $original->getTimestamp())) {
                $this->clearChange($key);
            } else {
                $this->current[$key] = $value;
            }
        }
        return $this;
    }
270561
public function set($key, $value)
    {
        if (method_exists($this, 'validate' . ucfirst($key))) {
            $value = call_user_func([$this, 'validate' . ucfirst($key)], $value);
        }

        $this->checkKeyExistInDefault($key);

        $this->data[$key] = $value;

        return $this;
    }
1185226
public function offsetSet($key, $value)
    {
        if (is_null($key)) {
            $this->values[] = $value;
        } else {
            $this->values[$key] = $value;
        }

        return $this;
    }