1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
|
<!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>
<link rev="made" href="mailto:root@localhost" />
</head>
<body style="background-color: white">
<p><A NAME="__index__"></a></p>
<!-- INDEX BEGIN -->
<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>
<!-- INDEX END -->
<hr />
<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><%def></code>) and methods (defined
by <code><%method></code>).</p>
<p>A subcomponent gets most of its properties from its owner.</p>
<p>
</p>
<hr />
<h1><A NAME="methods">METHODS</a></h1>
<dl>
<dt><strong><A NAME="item_is_method">is_method</a></strong><br />
</dt>
<dd>
Returns 1 if this is a method (declared by <code><%method></code>), 0 if it is a
subcomponent (defined by c<< <%def> >>).
</dd>
<p></p>
<dt><strong><A NAME="item_owner">owner</a></strong><br />
</dt>
<dd>
Return the component object that this subcomponent or method was
defined within.
</dd>
<p></p></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>
|