From 672f0445d8c46ff29b0c6ebf18d30791c017260a Mon Sep 17 00:00:00 2001 From: David Baird Date: Sun, 30 Oct 2005 16:22:25 +0000 Subject: [PATCH] Added note about overriding CDBI methods in Mp::Manual::Inheritance. git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@403 48953598-375a-da11-a14b-00016c27c3ee --- lib/Maypole/Manual/Inheritance.pod | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/lib/Maypole/Manual/Inheritance.pod b/lib/Maypole/Manual/Inheritance.pod index 2dd0eaf..1c2fca9 100644 --- a/lib/Maypole/Manual/Inheritance.pod +++ b/lib/Maypole/Manual/Inheritance.pod @@ -238,6 +238,14 @@ C, then C, C, C, and C, before moving on to C and finally C. +B - if your Offline model overrides L methods, these methods +will B be overridden when called from the Maypole application, because the +Maypole model provides an alternative path to L which is searched +first. The solution is to place such methods in a separate package, e.g. +C. Place this B in the C<@ISA> of both +C and C. Note that C +does not itself need to inherit from L. + Methods defined in the Maypole model base class (C), override methods in the individual Offline table classes, and in the Offline model base class (C). @@ -262,3 +270,16 @@ Whatever label you prefer to use, this approach provides for clear separation of concerns between the underlying model and the web/user interface, and that's what it's all about. +=head1 AUTHOR + +David Baird, C<< >> + +=head1 COPYRIGHT & LICENSE + +Copyright 2005 David Baird, All Rights Reserved. + +This text is free documentation; you can redistribute it and/or modify it +under the same terms as the Perl documentation itself. + +=cut + -- 2.39.2