Myco::Base::Entity::Meta::UI
0.01
$Revision$ $Date$
see Myco::Base::Entity::Meta
Container for metadata describing appropriate user interface behavior for an entity class.
Constructor, accessors, and other methods -- as inherited from Class::Tangram
Attributes may be initially set during object construction (with new()) but otherwise are accessed solely through accessor methods. Typical usage:
new()
Set attribute value
$obj->set_attribute($value);
Check functions (see Class::Tangram) perform data validation. If there is any concern that the set method might be called with invalid data then the call should be wrapped in an eval block to catch exceptions that would result.
eval
Get attribute value
$value = $obj->get_attribute;
A listing of available attributes follows:
type: hash ref
type: string or coderef
type: array ref my $sort = [ 'last_name', {first_name => 1}, ];
List of attributes to use in sorting list of objects of same (or polymorphic) type. Default order is ascending; optional boolean flag indicates 'descending' order.
Reference to ..::Meta::UI::List object. set_list() automatically constructs such an object (a new one).
set_list()
Reference to ..::Meta::UI::View object. set_view() automatically constructs such an object (a new one).
set_view()
my @sorted_objs = $ui_metadata->sort_objs(@unsorted_objs);
Returns a code ref for use in perl-style sorting, utilizing class metadata.
Copyright (c) 2004 the myco project. All rights reserved. This software is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Myco::Base::Entity::Meta::UI::Test, Myco::Base::Entity, Myco, Tangram, Class::Tangram, mkentity
To install Myco, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Myco
CPAN shell
perl -MCPAN -e shell install Myco
For more information on module installation, please visit the detailed CPAN module installation guide.