public function initialize($config = array()) { if (count($config) > 0) { foreach ($config as $key => $val) { if (isset($this->{$key})) { $this->{$key} = $val; } } } }