{
    "mode": "perldoc",
    "parameter": "HTML::Mason::Component::Subcomponent",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/HTML%3A%3AMason%3A%3AComponent%3A%3ASubcomponent/json",
    "generated": "2026-06-09T12:23:19Z",
    "sections": {
        "NAME": {
            "content": "HTML::Mason::Component::Subcomponent - Mason Subcomponent Class\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This is a subclass of HTML::Mason::Component. Mason uses it to implement both subcomponents\n(defined by \"<%def>\") and methods (defined by \"<%method>\").\n\nA subcomponent/method gets most of its properties from its owner. Note that the link from the\nsubcomponent to its owner is a weak reference (to prevent circular references), so if you grab a\nsubcomponent/method object, you should also grab and hold a reference to its owner. If the owner\ngoes out of scope, the subcomponent/method object will become unusable.\n",
            "subsections": []
        },
        "METHODS": {
            "content": "ismethod\nReturns 1 if this is a method (declared by \"<%method>\"), 0 if it is a subcomponent (defined\nby c<< <%def> >>).\n\nowner\nReturns the component object within which this subcomponent or method was defined.\n",
            "subsections": []
        }
    },
    "summary": "HTML::Mason::Component::Subcomponent - Mason Subcomponent Class",
    "flags": [],
    "examples": [],
    "see_also": []
}