Fix POD, condense Asset attributes. A test for tableName in the constructor.

This commit is contained in:
Colin Kuskie 2009-12-17 18:07:47 -08:00
parent e1be2f9319
commit 456eb6f39a
3 changed files with 8 additions and 14 deletions

View file

@ -55,16 +55,8 @@ sub property_meta {
return 'WebGUI::Definition::Meta::Property::Asset'; return 'WebGUI::Definition::Meta::Property::Asset';
} }
has 'tableName' => ( has [ qw{tableName icon assetName} ] => (
is => 'rw', is => 'rw',
);
has 'icon' => (
is => 'rw',
);
has 'assetName' => (
is => 'rw',
); );
#------------------------------------------------------------------- #-------------------------------------------------------------------

View file

@ -48,8 +48,8 @@ These methods are available from this class:
=head2 get_all_properties ( ) =head2 get_all_properties ( )
Returns an array of all Properties, in all classes, in the Returns an array of all Properties, in all classes, in the order they were
order they were created in the Definition. created in the Definition.
=cut =cut
@ -72,8 +72,8 @@ sub get_all_properties {
=head2 get_attributes ( ) =head2 get_attributes ( )
Returns an array of all attributes, but only for this class. This Returns an array of all attributes, but only for this class. This is the
is the API-safe way of doing $self->_attribute_map; API-safe way of doing $self->_attribute_map;
=cut =cut

View file

@ -149,6 +149,8 @@ my $called_getProperties;
'get_tables returns a list of all tables used by this class' 'get_tables returns a list of all tables used by this class'
); );
my $object2 = __PACKAGE__->new(tableName => 'notAsset');
::is $object2->tableName, 'asset', 'tableName ignored in constructor';
} }
{ {