blob: 0f5d6b6588aa2c81a2e49e7f66576f7f142e9693 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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);
}
}
}
|