Bugzilla – Attachment 162201 Details for
Bug 36098
Create Koha::Session module
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36098: (QA follow-up) Add POD to Koha::Session
Bug-36098-QA-follow-up-Add-POD-to-KohaSession.patch (text/plain), 1.79 KB, created by
Martin Renvoize (ashimema)
on 2024-02-15 11:57:58 UTC
(
hide
)
Description:
Bug 36098: (QA follow-up) Add POD to Koha::Session
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2024-02-15 11:57:58 UTC
Size:
1.79 KB
patch
obsolete
>From 3bf61b770de2613df196c2aee11759767b301a58 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Thu, 15 Feb 2024 11:53:02 +0000 >Subject: [PATCH] Bug 36098: (QA follow-up) Add POD to Koha::Session > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > Koha/Session.pm | 31 ++++++++++++++++++++++++++++++- > 1 file changed, 30 insertions(+), 1 deletion(-) > >diff --git a/Koha/Session.pm b/Koha/Session.pm >index 68a7b2787a2..8f74ee10cad 100644 >--- a/Koha/Session.pm >+++ b/Koha/Session.pm >@@ -21,6 +21,35 @@ use CGI::Session; > use C4::Context; > use Koha::Caches; > >+=head1 NAME >+ >+Koha::Session - Session class for Koha >+ >+=head1 SYNOPSIS >+ >+ use Koha::Session; >+ my $session = Koha::Session->get_session({ sessionID => $sessionID}); >+ >+=head1 DESCRIPTION >+ >+This simple class exposes some basic methods for managing user sessions. >+ >+=head1 METHODS >+ >+=head2 get_session >+ >+ my $session = Koha::Session->get_session({ sessionID => $sessionID}); >+ >+Given a session ID, retrieves the CGI::Session object used to store >+the session's state. The session object can be used to store >+data that needs to be accessed by different scripts during a >+user's session. >+ >+If the C<$sessionID> parameter is an empty string, a new session >+will be created. >+ >+=cut >+ > sub _get_session_params { > my $class = shift; > my $storage_method = C4::Context->preference('SessionStorage'); >@@ -47,7 +76,7 @@ sub _get_session_params { > sub get_session { > my ( $class, $args ) = @_; > my $sessionID = $args->{sessionID}; >- my $params = $class->_get_session_params(); >+ my $params = $class->_get_session_params(); > my $session; > if ($sessionID) { # find existing > CGI::Session::ErrorHandler->set_error(q{}); # clear error, cpan issue #111463 >-- >2.43.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 36098
:
162167
|
162200
| 162201 |
162204
|
162205
|
162228
|
162231
|
162314