Skip to content

Instantly share code, notes, and snippets.

@perlDreamer
Created December 10, 2009 23:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save perlDreamer/253832 to your computer and use it in GitHub Desktop.
Save perlDreamer/253832 to your computer and use it in GitHub Desktop.
#-------------------------------------------------------------------
=head2 get_property_list ( )
Returns the name of all properties, in the order they were created in the Definition.
=cut
sub get_property_list {
my $self = shift;
my @properties =
map { $_->name }
sort { $a->insertion_order <=> $b->insertion_order }
grep { $_->meta->isa('WebGUI::Definition::Meta::Property') }
$self->meta->get_all_attributes;
return \@properties;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment