Пример #1
0
 /**
  * @param string $property The model option property
  * @param array $atts @see PW_HTML::tag() for details
  * @param string $extra Any addition markup you want to display after the input element
  * @return string The generated HTML markup
  * @since 0.1
  */
 public function textarea($property, $atts = array(), $extra = '')
 {
     extract($this->get_field_data_from_model($property));
     // returns $error, $label, $desc, $name, $value, $id
     $label = PW_HTML::label($label, $id);
     $field = PW_HTML::textarea($name, $value, $atts);
     $this->return_or_echo($this->render_field($label, $field, $desc, $extra, $error));
 }