summaryrefslogtreecommitdiff
path: root/plugins/Bigboard/UserSession.php
blob: 8bdea501e492e3a58f4060eb0ff853a2a8e0ea4a (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
<?php

namespace Kanboard\Plugin\Bigboard;

class UserSession extends \Kanboard\Core\User\UserSession
{
  /**
   *  is the Bigboard collapsed or expanded
   *
   * @access public
   * @return boolean
   */
   public function isBigboardCollapsed()
   {
     return session_is_true('bigboardCollapsed');
   }

   /**
    * Set Bigboard display mode
    *
    * @access public
    * @param  boolean  $is_collapsed
    */
   public function setBigboardDisplayMode($is_collapsed)
   {
     session_set('bigboardCollapsed', true);
   }

}