API16

API16:JNode/hasParent

From Joomla! Documentation

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