Example #1
0
 /**
  * Use a \Dewdrop\Db\Field object to set the editor's id and content.
  *
  * @param Field $field
  * @return string
  */
 public function directField(Field $field)
 {
     $field->getFilterChain()->attach(new StripSlashes());
     return $this->directArray(array('name' => $field->getControlName(), 'value' => $field->getValue(), 'id' => $field->getHtmlId()));
 }