Assigns the $key => $value argument to the right
place in the $data structure

Mutates $data and $options

@param $data
@param $options
@param $getter
@param $key
@param $value
191443
private function assignParameter(&$data, &$options, $getter, $key, $value)
    {
        if ($key == '_id') {
            $data[$key] = $value;
        } else if ($getter) {
            $converted = is_array($value) ? implode(',', $value) : $value;

            if ($key[0] === ':') {
                $options['httpParams'][$key] = $converted;
            } else {
                $options['query_parameters'][$key] = $converted;
            }
        } else {
            if (!isset($data['body'])) {
                $data['body'] = [];
            }

            $data['body'][$key] = $value;
        }
    }
123137
public function set( $key, $value, $param = null ) 
	{
	    CCArr::set( $key, $value, $this->_data );
	}
1206431
public static function Encrypt ($data, $key, $options = []) {
		$options = static::_AdjustOptions($options);
		return openssl_encrypt($data, $options['method'], $key, $options['openssl_options'], $options['iv']);
	}
617065
public static function set( $key, $value ) {
		self::$option[ self::$key ][ $key ] = $value;
		return update_option( self::$name, self::$option );
	}
957110
public static function set($key, $value, $options = []) {
		// store value in session
		if (!empty($options['session'])) {
			$key = array_key_convert_key($key);
			array_unshift($key, 'registry');
			array_unshift($key, 'numbers');
			\Session::set($key, $value);
		}
		array_key_set(self::$settings, $key, $value);
	}
374040
public function with( $key, $value = null ) {
		if ( is_array( $key ) ) {
			$this->data = array_merge( $this->data, $key );
		} else if ( is_object( $key ) && method_exists( $key, 'to_array' ) ) {
			$this->data = array_merge( $this->data, $key->to_array() );
		} else {
			$this->data[$key] = $value;
		}

		return $this;
	}
88877
public function set(string $key, $value)
    {
        if (!is_array($value)) {
            $value = [$value];
        }
        $this->data[$key] = $value;
    }
736423
public static function data($key, $value)
    {
        if ($value === null) {
            unset(self::$shared[$key]);
        } else {
            self::$shared[$key] = $value;
        }
    }
895963
public function setData($key, $value = null)
    {
        if (is_array($key)) {
            $this->_data = $key;
        } else {
            $this->_data[$key] = $value;
        }

        return $this;
    }
784557
public function set( $key, $value, $param = null ) 
	{
		if ( $param === true )
		{
			$value = CCStr::htmlentities( $value );
		}
		
		return CCArr::set( $key, $value, $this->_data );
	}
1320722
public static function sins( &$options = array(), $key, $value = null )
    {
        //	Accept an array as input or single KVP
        if ( !is_array( $key ) )
        {
            $key = array($key => $value);
        }

        foreach ( $key as $_key => $_value )
        {
            if ( !static::contains( $options, $_key ) )
            {
                static::set( $options, $_key, $_value );
            }
        }
    }
674866
public function add($key, $value, array $options=[]) {
		$options = array_merge(self::$defaults, $options);
		
		if ($this->attributes === null) {
			$this->attributes = new AttributesObject();
		}
		
		$this->validator->claimUsedFields([$key], Validator::OBJECT_CONTAINER_ATTRIBUTES, $options);
		
		$this->attributes->add($key, $value);
	}
115565
public function update($table, $data, $keys, $options = []) {
		return $this->object->update($table, $data, $keys, $options);
	}
916261
public static function Encrypt ($data, $key, $options = []) {
		$options = static::_AdjustOptions($options);

		$td = static::_OpenMcrypt($key, $options);
		$block_size = mcrypt_enc_get_block_size($td);

		$pad = $block_size - (strlen($data) % $block_size);
		$data .= str_repeat(chr($pad), $pad);

		$data = mcrypt_generic($td, $data);
		static::_CloseMcrypt($td);

		return $data;
	}
1130090
public function setGet($key, $value = null)
    {
        if (is_array($key)) {
            $this->get = array_merge($this->get, $key);
        } else {
            $this->get[$key] = $value;
        }
    }
143806
public function set($key, $value) {
        $this->checkReadOnly();
        self::setFromKey($this->data, $key, $value, $this->separator);
    }
375030
public function set_data($datavalue, $datakey = null) {
        $this->datavalue = $datavalue;

        // We must clear the datakey when changing the datavalue.
        $this->set_data_key($datakey);
    }