public function getAttributes() { $this->_fetchAttributes(); $attributes = array(); foreach ($this->attributes as $key => $val) { $attributes[$key] = $this->getAttribute($key); } return $attributes; }