API16

JNode/hasParent

< API16:JNode

The "API16" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Description

Test if this node has a parent



Syntax

hasParent()


Returns

bool

Defined in

libraries/joomla/base/node.php

Importing

jimport( 'joomla.base.node' );

Source Body

function hasParent() 
{
        return $this->getParent() != null;
}



Examples

Code Examples


Advertisement