The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>HTML::Mason::Component::Subcomponent - Mason Subcomponent Class</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:autarch@houseabsolute.urth.org" />
</head>

<body style="background-color: white">


<!-- INDEX BEGIN -->
<div name="index">
<p><A NAME="__index__"></a></p>

<ul>

	<li><A HREF="#name">NAME</a></li>
	<li><A HREF="#description">DESCRIPTION</a></li>
	<li><A HREF="#methods">METHODS</a></li>
	<li><A HREF="#see_also">SEE ALSO</a></li>
</ul>

<hr name="index" />
</div>
<!-- INDEX END -->

<p>
</p>
<h1><A NAME="name">NAME</a></h1>
<p>HTML::Mason::Component::Subcomponent - Mason Subcomponent Class</p>
<p>
</p>
<hr />
<h1><A NAME="description">DESCRIPTION</a></h1>
<p>This is a subclass of
<a HREF="../Component.html">HTML::Mason::Component</a>. Mason uses it to
implement both subcomponents (defined by <code>&lt;%def&gt;</code>) and methods (defined
by <code>&lt;%method&gt;</code>).</p>
<p>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.</p>
<p>
</p>
<hr />
<h1><A NAME="methods">METHODS</a></h1>
<dl>
<dt><strong><A NAME="is_method" class="item">is_method</a></strong></dt>

<dd>
<p>Returns 1 if this is a method (declared by <code>&lt;%method&gt;</code>), 0 if it is a
subcomponent (defined by c&lt;&lt; &lt;%def&gt; &gt;&gt;).</p>
</dd>
<dt><strong><A NAME="owner" class="item">owner</a></strong></dt>

<dd>
<p>Returns the component object within which this subcomponent or method
was defined.</p>
</dd>
</dl>
<p>
</p>
<hr />
<h1><A NAME="see_also">SEE ALSO</a></h1>
<p><a HREF="../Component.html">HTML::Mason::Component</a></p>

</body>

</html>