CatalystX::Usul::Model - Interface model base class
Describes v0.17.$Rev: 1 $
package YourApp::Model::YourModel; use CatalystX::Usul::Moose; extends qw(CatalystX::Usul::Model);
Common core interface model methods
Defines the following attributes
A weakened copy of the Catalyst object
Hash ref which defaults to {}
A loadable class which defaults to Class::Null
The domain model object
The IO encoding used by the domain model. Defaults to "encoding" in Class::Usul::Config
A loadable class which defaults to Class::Usul::Response::Table. Contains a table of links used to display the site map
A reference to the Class::Usul object stored on the application by CatalystX::Usul::TraitFor::CreatingUsul
Calls "build_per_context_instance" for each new context
Called by "ACCEPT_CONTEXT". Takes a copy of the Catalyst object as $self->context
$self->context
$localized_text = $self->loc( $key, @options );
Localizes the message. Calls "localize" in Class::Usul::L10N. Adds the constant DEFAULT_L10N_DOMAINS to the list of domain files that are searched. Adds $self->context->stash->{language} and $self->context->stash->{namespace} (search domain) to the arguments passed to localize
DEFAULT_L10N_DOMAINS
$self->context->stash->{language}
$self->context->stash->{namespace}
localize
None
There are no known incompatibilities in this module.
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.