class :admin:auto extends :x:element { attribute string brand = "Ferrari" @required, enum { "blau", "rot" } color; protected function render() { foreach ($this->getAttributes() as $key => $val) { $output .= ' ' . $key . '="' . $val . '"'; } return
{$output}
; } } echo ;