public function get($name) { if ($name == 'text') { return $this->_text; } else { return parent::get($name); } }
public function get($name) { if ($name == 'code') { return $this->_code; } else { return parent::get($name); } }
public function get($name) { try { $value = parent::get($name); } catch (HTML_No_Such_Element_Attribute_Exception $e) { try { $value = $this->_events->get($name); } catch (No_Such_Variable_Exception $e) { throw new HTML_No_Such_Element_Attribute_Exception(get_class($this) . '::' . $name); } } return $value; }