Add data
@param string $key
@param string $value
@param boolean $overwrite
502032
public function addValue($key, $value, $overwrite = false)
    {
        if (!isset($this->data[$key]) || $overwrite) {
            $this->data[$key] = (string) $value;
        }
    }
737712
public function addData($key, $value)
    {
        if (isset($this->data[$key])) {
            $this->data[$key] = array_merge_recursive(
                $this->data[$key],
                $value
            );
        } else {
            $this->setData($key, $value);
        }
    }
242226
protected function addSection($section, $contents, $overwrite = false)
    {
        if ($overwrite || !isset($this->sections[$section])) {
            $this->sections[$section] = $contents;
        }

        return $this;
    }
560789
public function blendFromSeed($seed_key, $overwrite = false)
    {
        $this->loadObjectDataFromSeed($seed_key);
        return $this->blend($overwrite);
    }
1263479
public function add($key, $value) {
        $node = new Node();
        $node->setKey($key);
        $node->setValue($value);
        $this->append($node);
    }
620568
public static function register($key, $value, $data = [])
    {
        if (!self::_tableExists()) {
            return;
        }

        self::autoLoad();

        $_data = [
            'value' => $value,
            'editable' => 1,
            'autoload' => true,
            'options' => [],
            'description' => null,
        ];

        $data = array_merge($_data, $data);

        // Don't overrule because we register
        $data['overrule'] = false;

        self::options($key, $data['options']);

        self::write($key, $data['value'], $data);
    }
1222596
public function add($key, $value)
    {
        if (!is_null($value)) {
            $this->data[$key] = $value;
        }

        return $this;
    }
716278
public static function add($key, $value) {

		if(null === $value && is_array($key)) {

			foreach($key as $index => $value) {
				static :: $data[$index] = $value;
			}

			return;
		}

		if(true === isset(static :: $data[$key]) && true === is_array(static :: $data[$key])) {

			if(true === is_array($value)) {
				$value = array_merge(static :: $data[$key], $value);	
			}
			else {
				static :: $data[$key][] = $value;
			}
		}

		static :: $data[$key] = $value;
	}
557827
static function write($key,$value){
	
		$segments = self::engineName($key);
		$file = [implode($segments->file,'.')];
		
		// set key data
		$keys = array_merge($file,$segments->keys);
		
		// update config data
		self::$data = array_replace_recursive(
			self::$data ,
			self::_makeDimensional($keys,$value)
		);
	}
265763
public static function put($key, $value)
    {
        Cache::ensureCacheDirectoryExists($path = Cache::path($key));
        file_put_contents($path, $value);
    }
1030158
public function addData($key, $value) {
    if (!isset($this->data)) $this->data = array();
    $this->data[$key] = $value;
    return $this;
  }
311958
public function overwrite($key, $value=null)
    {
        if (!is_array($key)) {
            $this->overwrittenData[$key] = $value;
            return $this;
        }

        foreach ($key as $k=>$v) {
            $this->overwrite($k, $v);
        }

        return $this;
    }
1292585
public function setConfig(array $config, $overwrite = false) 
    {
        if ($overwrite) {
            $this->config = $this->_mergeConfig($this->config, $config);
        } else {
            $this->config = $this->_mergeConfig($config, $this->config);
        }
    }
821130
public function addQueryParameter($key, $value, $override = true)
    {
        if (!isset($this->queryParameters[$key]) || true === $override) {
            $this->queryParameters[$key] = $value;
            return true;
        }

        return false;
    }
533134
public function addUserData(array $data = [], $reset = false, $override = false) {
        if ($data && is_array($data)) {
            if ($override) {
                $data = array_diff_key($data, $_REQUEST);
            }
            if ($reset) {
                $this->userData = $data;
            } else {
                $this->userData = array_merge($this->userData, $data);
            }
        }
    }
476905
public function merge(DataArrayInterface $dataArray, $overwrite = true)
    {
        foreach ($dataArray as $key => $value) {
            //http://juliusbeckmann.de/blog/php-benchmark-isset-or-array_key_exists.html
            if (isset($this->value[$key])) {
                if (is_int($key)) {
                    $this->value[] = $value;
                } else if ($value instanceof self
                    && $this->value[$key] instanceof self) {
                    $this->value[$key]->merge($value);
                } else if ($overwrite) {
                    if ($value instanceof self) {
                        //new static for php 5.3. late static binding
                        //we need to do this since it is possible we are dealing
                        // with a derived class
                        $this->value[$key] = new static($value->toArray());
                    } else {
                        $this->value[$key] = $value;
                    }
                }
            } else {
                if ($value instanceof self) {
                    $this->value[$key] = new static($value->toArray());
                } else {
                    $this->value[$key] = $value;
                }
            }
        }

        return $this;
    }
606811
public function add(array $translations, $override = false)
    {
        if ($override) {
            $this->_data = array_merge($this->_data, $translations);
        } else {
            $this->_data = array_merge($translations, $this->_data);
        }

        return true;
    }