diff options
| author | 2012-10-21 18:47:57 +0200 | |
|---|---|---|
| committer | 2012-10-21 18:47:57 +0200 | |
| commit | fb57be5a5af3a2fb46b2dbf2b503ffe78eb5cf49 (patch) | |
| tree | 9440fc7846d8a56a7005b9ef029669c96ad959aa /app/controllers/configureController.php | |
First commit
Diffstat (limited to 'app/controllers/configureController.php')
| -rwxr-xr-x | app/controllers/configureController.php | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/app/controllers/configureController.php b/app/controllers/configureController.php new file mode 100755 index 000000000..0f5d6b658 --- /dev/null +++ b/app/controllers/configureController.php @@ -0,0 +1,33 @@ +<?php + +class configureController extends ActionController { + public function categorizeAction () { + + } + + public function fluxAction () { + + } + + public function displayAction () { + if (Request::isPost ()) { + $nb = Request::param ('posts_per_page', 10); + $view = Request::param ('default_view', 'all'); + $display = Request::param ('display_posts', 'no'); + + $this->view->conf->_postsPerPage (intval ($nb)); + $this->view->conf->_defaultView ($view); + $this->view->conf->_displayPosts ($display); + + $values = array ( + 'posts_per_page' => $this->view->conf->postsPerPage (), + 'default_view' => $this->view->conf->defaultView (), + 'display_posts' => $this->view->conf->displayPosts () + ); + + $confDAO = new RSSConfigurationDAO (); + $confDAO->save ($values); + Session::_param ('conf', $this->view->conf); + } + } +} |
