src/DatabaseSettingStore.php
protected function prepareInsertData(array $data)
	{
		$dbData = array();

		if ($this->extraColumns) {
			foreach ($data as $key => $value) {
				$dbData[] = array_merge(
					$this->extraColumns,
					array($this->keyColumn => $key, $this->valueColumn => $value)
				);
			}
		} else {
			foreach ($data as $key => $value) {
				$dbData[] = array($this->keyColumn => $key, $this->valueColumn => $value);
			}
		}

		return $dbData;
	}
protected function prepareInsertData(array $data)
	{
		$dbData = array();

		if ($this->extraColumns) {
			foreach ($data as $key => $value) {
				$dbData[] = array_merge(
					$this->extraColumns,
					array($this->keyColumn => $key, $this->valueColumn => $value)
				);
			}
		} else {
			foreach ($data as $key => $value) {
				$dbData[] = array($this->keyColumn => $key, $this->valueColumn => $value);
			}
		}

		return $dbData;
	}
protected function prepareInsertData ( array $ data ) { $ dbData = array ( ) ; if ( $ this -> extraColumns ) { foreach ( $ data as $ key => $ value ) { $ dbData [ ] = array_merge ( $ this -> extraColumns , array ( $ this -> keyColumn => $ key , $ this -> valueColumn => $ value ) ) ; } } else { foreach ( $ data as $ key => $ value ) { $ dbData [ ] = array ( $ this -> keyColumn => $ key , $ this -> valueColumn => $ value ) ; } } return $ dbData ; }
Transforms settings data into an array ready to be insterted into the
database. Call array_dot on a multidimensional array before passing it
into this method!

@param  array $data Call array_dot on a multidimensional array before passing it into this method!

@return array
Transforms settings data into an array ready to be insterted into the database . Call array_dot on a multidimensional array before passing it into this method!