Help-Site Computer Manuals
Software
Hardware
Programming
Networking
  Algorithms & Data Structures   Programming Languages   Revision Control
  Protocols
  Cameras   Computers   Displays   Keyboards & Mice   Motherboards   Networking   Printers & Scanners   Storage
  Windows   Linux & Unix   Mac

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

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


NAME

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


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
Return the component object that this subcomponent or method was defined within.


SEE ALSO

HTML::Mason::Component

Programminig
Wy
Wy
yW
Wy
Programming
Wy
Wy
Wy
Wy