From 2c2506091bfbc26690d8258a02e055dc72db3725 Mon Sep 17 00:00:00 2001 From: "Stepanov M. Evgeny" Date: Tue, 25 Dec 2012 18:00:47 +0300 Subject: [PATCH] add method setInModel --- main/Flow/ModelAndView.class.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/main/Flow/ModelAndView.class.php b/main/Flow/ModelAndView.class.php index 615eaa78bb..0f35f9ad55 100644 --- a/main/Flow/ModelAndView.class.php +++ b/main/Flow/ModelAndView.class.php @@ -49,6 +49,16 @@ public function setModel(Model $model) return $this; } + /** + * @return ModelAndView + **/ + public function setInModel($name, $value) + { + $this->model->set($name, $value); + + return $this; + } + public function getView() { return $this->view;