forked from pcadeot/kanboard-bigboard
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathUserSession.php
More file actions
43 lines (38 loc) · 987 Bytes
/
UserSession.php
File metadata and controls
43 lines (38 loc) · 987 Bytes
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
34
35
36
37
38
39
40
41
42
43
<?php
namespace Kanboard\Plugin\Bigboard;
class UserSession extends \Kanboard\Core\User\UserSession
{
/**
* is the Bigboard collapsed or expanded.
*
* @return boolean
*/
public function isBigboardCollapsed()
{
return session_is_true('bigboardCollapsed');
}
/**
* Set Bigboard display mode.
*
* @param bool $is_collapsed
*/
public function setBigboardDisplayMode($is_collapsed)
{
session_set('bigboardCollapsed', true);
}
/**
* Set the BigBoard search string
*
* @param string $search a Kanboard-style search string
*/
public function setBigboardSearch($search) {
session_set('bigboardSearch', $search);
}
/**
* Gets the BigBoard search key
* @return mixed|null Kanboard-style search string
*/
public function getBigboardSearch() {
return session_get('bigboardSearch');
}
}