HTML::Mason::Component::Subcomponent(3pm)

HTML::Mason::Component::Subcomponent3pm

Mason subcomponent class

Overview

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.

Releases

11 releases since Debian 3.1 (Sarge); the text changed 10 times.

  1. 3.1
  2. 4.0
  3. 5.0
  4. 6.0
  5. 7
  6. 8
  7. 9
  8. 10
  9. 11
  10. 12
  11. 13

From libhtml-mason-perl 1:1.60-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.