Jonathan Swartz > HTML-Mason-1.54 > HTML::Mason::Component::Subcomponent

Download:
HTML-Mason-1.54.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  2
Open  2
Stalled  3
View/Report Bugs
Module Version: 1.54   Source   Latest Release: HTML-Mason-1.56

NAME ^

HTML::Mason::Component::Subcomponent - Mason Subcomponent Class

VERSION ^

version 1.54

DESCRIPTION ^

This is a subclass of HTML::Mason::Component. Mason uses it to implement both subcomponents (defined by <%def>) and methods (defined by <%method>).

A subcomponent/method gets most of its properties from its owner. Note that the link from the subcomponent to its owner is a weak reference (to prevent circular references), so if you grab a subcomponent/method object, you should also grab and hold a reference to its owner. If the owner goes out of scope, the subcomponent/method object will become unusable.

METHODS ^

is_method

Returns 1 if this is a method (declared by <%method>), 0 if it is a subcomponent (defined by c<< <%def> >>).

owner

Returns the component object within which this subcomponent or method was defined.

SEE ALSO ^

Mason

AUTHORS ^

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2012 by Jonathan Swartz.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: