CatalystX::Usul::Model::Session - Current session information
Describes v0.17.$Rev: 1 $
package YourApp; use Moose; use Catalyst qw(ConfigComponents...); with qw(CatalystX::Usul::TraitFor::ListSessions); $class->config ( 'Model::Session' => { base_class => q(CatalystX::Usul::Model::Session) }, ); package YourApp::Controller::YourController; sub sessions : Chained(common) Args(0) { my ($self, $c) = @_; my $s = $c->stash; $c->model( q(Session) )->list_sessions( $c ); return; } sub ttys : Chained(common) Args(0) { my ($self, $c) = @_; my $s = $c->stash; $c->model( q(Session) )->list_TTY_sessions( $s ); return; }
Provides a utility method to display current session information
Defines the following list of attributes;
A loadable class which defaults to Class::Usul::IPC
A loadable class which defaults to Class::Usul::Response::Table These table objects are stashed and rendered later by HTML::FormWidgets::Table
Returns a clone of the model instance. Instantiates query object
$self->delete_session( $c, $sid );
Deletes the specified session
$bool = $self->delete_sessions;
Delete the selected sessions. Returns true
$self->list_sessions;
Stuffs the stash with table data for the current user sessions
$self->list_TTY_sessions;
Calls "_list_TTY_sessions" to obtain a list of terminal sessions. Stuffs the stash with the data needed by HTML::FormWidgets to display this information as a table
$table_object = $self->_get_tty_session_table( $user_model );
Generates table data for current terminal sessions
None
There are no known incompatibilities in this module
Only works with Catalyst::Session::FastMmap
There are no known bugs in this module. Please report problems to the address below. Patches are welcome
Peter Flanigan, <Support at RoxSoft.co.uk>
<Support at RoxSoft.co.uk>
Copyright (c) 2014 Peter Flanigan. All rights reserved
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic
This program is distributed in the hope that it will be useful, but WITHOUT WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE
To install CatalystX::Usul, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CatalystX::Usul
CPAN shell
perl -MCPAN -e shell install CatalystX::Usul
For more information on module installation, please visit the detailed CPAN module installation guide.