public function renderStatic(html_form $form, $name, $input, $label, model_editor $editor, model_editor_field $field) { $value = $this->formatValue($name, $input, $editor, $field); $classes = array($this->class, 'date', preg_replace('/\\W/', '', $this->staticFormat)); $classes = implode(' ', array_filter($classes)); $form->setRow($name, $label, markup::inline($value, 'static'), $this->isMandatory, null, null, $classes); return $this; }