CoCart_Session_Handler C

Total Complexity 103
Dependencies 4
Dependents 3
Total lines 1,101
Lines of code 398
Logical lines of code 197
Comment lines 627
Methods 42
Properties 4

Methods 42

Method Rating Maintainability Complexity Lines of code
init_session_cocart()
A
51 10 26
set_cart_expiration()
A
47 9 38
save_data()
A
47 9 34
cocart_setcookie()
S
57 7 13
create_new_cart()
S
51 5 27
get_session()
S
53 5 23
is_user_customer()
S
60 5 13
is_cart_data_valid()
S
62 5 10
has_session()
S
66 4 9
get_requested_cart()
S
63 3 10
set_cart_hash()
S
66 3 7
cleanup_sessions()
S
62 2 12
init()
S
63 2 11
delete_session()
S
68 2 7
update_session_timestamp()
S
69 2 6
session_exists()
S
76 2 3
get_cart_data()
S
74 2 4
use_httponly()
S
67 2 8
update_cart()
S
61 1 13
is_cookie_supported()
S
63 1 12
get_cart_created()
S
63 1 11
get_cart_expiration()
S
63 1 11
get_cart_source()
S
63 1 11
__construct()
S
75 1 4
is_session_expiring()
S
80 1 3
generate_key()
S
68 1 6
get_cache_prefix()
S
80 1 3
destroy_cart()
S
77 1 4
destroy_session()
S
82 1 3
delete_cart()
S
71 1 5
update_cart_timestamp()
S
65 1 10
get_table_name()
S
82 1 3
get_customer_id()
S
82 1 3
set_customer_id()
S
81 1 3
get_cart_hash()
S
82 1 3
get_cart_is_expiring()
S
82 1 3
get_carts_expiration()
S
82 1 3
get_cookie_name()
S
75 1 4
save_cart()
S
75 1 4
destroy_cookie()
S
73 1 4
get_cart()
S
75 1 4
forget_cart()
S
69 1 7