in reply to Re: Question about __PACKAGE__
in thread Question about __PACKAGE__
I ask this question is because I see the following Item class generated by catalyst's create script using several _PACKAGE__->...() inside its package. I think the purpose of these class method calls is to initialize some class variables (data structures) instead of object variables for Item's parent class, which is DBIx::Class. Am I right ?
Thanks.
package Result::Item; use strict; use warnings; use base 'DBIx::Class'; __PACKAGE__->load_components( "InflateColumn::DateTime", "Core" ); __PACKAGE__->table("item"); __PACKAGE__->add_columns( "id", { data_type => "INTEGER", default_value => undef, is_nullable => 0, size => undef, }, ); 1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Question about __PACKAGE__
by chromatic (Archbishop) on Jan 22, 2010 at 06:34 UTC | |
|
Re^3: Question about __PACKAGE__
by ikegami (Patriarch) on Jan 22, 2010 at 07:20 UTC | |
|
Re^3: Question about __PACKAGE__
by sman (Beadle) on Jan 22, 2010 at 04:35 UTC | |
by SpiceMan (Sexton) on Jan 22, 2010 at 04:58 UTC | |
by sman (Beadle) on Jan 22, 2010 at 05:36 UTC | |
by ikegami (Patriarch) on Jan 22, 2010 at 07:39 UTC | |
by sman (Beadle) on Jan 22, 2010 at 22:00 UTC | |
by ikegami (Patriarch) on Jan 22, 2010 at 22:30 UTC | |
by sman (Beadle) on Jan 22, 2010 at 22:26 UTC | |
by ikegami (Patriarch) on Jan 22, 2010 at 22:33 UTC | |
|