Beispiel #1
0
 /**
  * @param FormControl $before The control to insert the control in front of
  * @param FormControl $control The control to insert
  * @return FormControl $control via Fluent interface
  */
 public function insert($before, $control)
 {
     if (!$control instanceof FormControl) {
         $args = func_get_args();
         $before = array_shift($args);
         $control = FormControl::from_args($args);
     }
     $this->append($control);
     $this->move_before($control, $before);
     return $control;
 }