public function init(array $config) {
		if ($config) {
			foreach ($config as $key => $value) {
				$method = 'set' . ucfirst(camel_case($key));

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

		return $this;
	}
public function init(array $config) {
		if ($config) {
			foreach ($config as $key => $value) {
				$method = 'set' . ucfirst(camel_case($key));

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

		return $this;
	}
public function init ( array $ config ) { if ( $ config ) { foreach ( $ config as $ key => $ value ) { $ method = 'set' . ucfirst ( camel_case ( $ key ) ) ; if ( method_exists ( $ this , $ method ) ) { $ this -> $ method ( $ value ) ; } } } return $ this ; }
Setup column by passing config array.

@param array $config

@return $this
Setup column by passing config array .