function getData($key = null, $default = '') { if (is_null($key)) { return parent::getData(); } if (isset($this->data[$key])) { return $this->data[$key]; } else { return $default; } }