Peter Flanigan > CatalystX-Usul > CatalystX::Usul::Model::Schema

Download:
catalystx-usul/CatalystX-Usul-0.7.1184.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  0
View/Report Bugs
Module Version: v0.7.1181   Source  

Name ^

CatalystX::Usul::Model::Schema - Base class for database models

Version ^

0.7.$Revision: 1181 $

Synopsis ^

   package YourApp::Model::YourModel;

   use parent qw(CatalystX::Usul::Model::Schema);

   __PACKAGE__->config( database     => q(library),
                        schema_class => q(YourApp::Schema::YourSchema) );

   sub COMPONENT {
      my ($class, $app, $config) = @_;

      $config->{database    } ||= $class->config->{database};
      $config->{connect_info} ||=
         $class->get_connect_info( $app->config, $config->{database} );

      return $class->next::method( $app, $config );
   }

Description ^

Aggregates the methods from the three classes it inherits from

Subroutines/Methods ^

ACCEPT_CONTEXT

Copy of the one in CatalsytX::Usul::Model which is much more useful than the pointless one we are overridding in Catalyst::Model::DBIC::Schema

COMPONENT

Adds the attributes from CatalystX::Usul::Model to the ones from Catalyst::Model::DBIC::Schema

Diagnostics ^

None

Configuration and Environment ^

None

Dependencies ^

Catalyst::Model::DBIC::Schema
CatalystX::Usul::Model
CatalystX::Usul::Schema

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) 2008 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

syntax highlighting: