98 lines
2 KiB
Perl
98 lines
2 KiB
Perl
package WebGUI::Definition::Meta::Asset;
|
|
|
|
=head1 LEGAL
|
|
|
|
-------------------------------------------------------------------
|
|
WebGUI is Copyright 2001-2009 Plain Black Corporation.
|
|
-------------------------------------------------------------------
|
|
Please read the legal notices (docs/legal.txt) and the license
|
|
(docs/license.txt) that came with this distribution before using
|
|
this software.
|
|
-------------------------------------------------------------------
|
|
http://www.plainblack.com info@plainblack.com
|
|
-------------------------------------------------------------------
|
|
|
|
=cut
|
|
|
|
use 5.010;
|
|
use Moose;
|
|
use namespace::autoclean;
|
|
use WebGUI::Definition::Meta::Property::Asset;
|
|
no warnings qw(uninitialized);
|
|
|
|
extends 'WebGUI::Definition::Meta::Class';
|
|
|
|
our $VERSION = '0.0.1';
|
|
|
|
=head1 NAME
|
|
|
|
Package WebGUI::Definition::Meta::Property::Asset
|
|
|
|
=head1 DESCRIPTION
|
|
|
|
Extends WebGUI::Definition::Meta::Class to provide
|
|
|
|
=head1 SYNOPSIS
|
|
|
|
Extends 'WebGUI::Definition::Meta::Class' to provide attributes specific to Assets.
|
|
|
|
=head1 METHODS
|
|
|
|
These methods are available from this class:
|
|
|
|
=cut
|
|
|
|
#-------------------------------------------------------------------
|
|
|
|
=head2 property_meta ( )
|
|
|
|
Asset Definitions use WebGUI::Definition::Meta::Property::Asset as the base class
|
|
for properties.
|
|
|
|
=cut
|
|
|
|
sub property_meta {
|
|
return 'WebGUI::Definition::Meta::Property::Asset';
|
|
}
|
|
|
|
has 'tableName' => (
|
|
is => 'rw',
|
|
);
|
|
|
|
has 'icon' => (
|
|
is => 'rw',
|
|
);
|
|
|
|
has 'assetName' => (
|
|
is => 'rw',
|
|
);
|
|
|
|
#-------------------------------------------------------------------
|
|
|
|
=head2 tableName ( )
|
|
|
|
The table that this asset stores its properties in.
|
|
|
|
=cut
|
|
|
|
#-------------------------------------------------------------------
|
|
|
|
=head2 icon ( )
|
|
|
|
The filename of the icon for this Asset. Icons are stored in
|
|
www/extras/assets and are 48 x 48 pixels in size. A smaller version of
|
|
the icon, 16x16, is found in www/extras/assets/small.
|
|
|
|
=cut
|
|
|
|
#-------------------------------------------------------------------
|
|
|
|
=head2 assetName ( )
|
|
|
|
????
|
|
|
|
=cut
|
|
|
|
|
|
1;
|
|
|