function panel_date($name, $input = null, $options = array(), $methode = null) { $out = get_field_wrapper($options, $name); if ($err = sfContext::getInstance()->getRequest()->getError($name)) { $options['class'] .= " error"; } $code = input_date_tag($name, get_val($input, $methode, $name), clear_options($options)); return str_replace('##code##', $code, $out); }
public function tearDown() { clear_options(); }