The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Name

CatalystX::Usul::Model - Interface model base class

Version

Describes v0.16.$Rev: 1 $

Synopsis

   package YourApp::Model::YourModel;

   use CatalystX::Usul::Moose;

   extends qw(CatalystX::Usul::Model);

Description

Common core interface model methods

Configuration and Environment

Defines the following attributes

context

A weakened copy of the Catalyst object

domain_attributes

Hash ref which defaults to {}

domain_class

A loadable class which defaults to Class::Null

domain_model

The domain model object

encoding

The IO encoding used by the domain model. Defaults to "encoding" in Class::Usul::Config

table_class

A loadable class which defaults to Class::Usul::Response::Table. Contains a table of links used to display the site map

usul

A reference to the Class::Usul object stored on the application by CatalystX::Usul::TraitFor::CreatingUsul

Subroutines/Methods

ACCEPT_CONTEXT

Calls "build_per_context_instance" for each new context

build_per_context_instance

Called by "ACCEPT_CONTEXT". Takes a copy of the Catalyst object as $self->context

loc

   $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

Diagnostics

None

Dependencies

Catalyst::Model
CatalystX::Usul
CatalystX::Usul::TraitFor::BuildingUsul
Class::Usul
CatalystX::Usul::Moose
Scalar::Util

Incompatibilities

There are no known incompatibilities in this module.

Bugs and Limitations

There are no known bugs in this module. Please report problems to the address below. Patches are welcome

Author

Peter Flanigan, <Support at RoxSoft.co.uk>

License and Copyright

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