summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-09-16 13:38:32 +0200
committerFrédéric Guillot <fred@kanboard.net>2014-09-16 13:38:32 +0200
commit6afae5ba7bb6fad34bd41441e1e16ce078d2f257 (patch)
tree27dd8d29bf8b9fb79b6d62b3afe5af1091160765
parentb1ffbbd501de315d7857f3d8f12dc64656b417f4 (diff)
Rename method names to be more consistent
-rw-r--r--app/Controller/Board.php4
-rw-r--r--app/Model/User.php4
2 files changed, 4 insertions, 4 deletions
diff --git a/app/Controller/Board.php b/app/Controller/Board.php
index 05ef018a..d160380e 100644
--- a/app/Controller/Board.php
+++ b/app/Controller/Board.php
@@ -188,7 +188,7 @@ class Board extends Base
*/
public function index()
{
- $last_seen_project_id = $this->user->getLastSeenProject();
+ $last_seen_project_id = $this->user->getLastSeenProjectId();
$favorite_project_id = $this->user->getFavoriteProjectId();
$project_id = $last_seen_project_id ?: $favorite_project_id;
@@ -224,7 +224,7 @@ class Board extends Base
$board_selector = $projects;
unset($board_selector[$project['id']]);
- $this->user->storeLastSeenProject($project['id']);
+ $this->user->storeLastSeenProjectId($project['id']);
$this->response->html($this->template->layout('board_index', array(
'users' => $this->project->getUsersList($project['id'], true, true),
diff --git a/app/Model/User.php b/app/Model/User.php
index 9eccb207..b8411533 100644
--- a/app/Model/User.php
+++ b/app/Model/User.php
@@ -44,7 +44,7 @@ class User extends Base
* @access public
* @return integer
*/
- public function getLastSeenProject()
+ public function getLastSeenProjectId()
{
return empty($_SESSION['user']['last_show_project_id']) ? 0 : $_SESSION['user']['last_show_project_id'];
}
@@ -55,7 +55,7 @@ class User extends Base
* @access public
* @@param integer $project_id Project id
*/
- public function storeLastSeenProject($project_id)
+ public function storeLastSeenProjectId($project_id)
{
$_SESSION['user']['last_show_project_id'] = (int) $project_id;
}