Ejemplo n.º 1
0
 /**
  * Applies the user input to a given model. Child classes should
  * override this if they need to do anything special.
  *
  * @param array $input the user input
  * @param ModelInterface $model the model to apply the input to
  * @return bool true if the input was applied successfully, note this is not
  * the same as validation.
  */
 public function applyUserInput($input, ModelInterface $model)
 {
     $model->setAttributes($input);
     return true;
 }