public function hasSharedParent()
    {
        $parent = $this->getParent();

        if ($parent != null && ($parent->isShared() || $parent->hasSharedParent())) {
            return true;
        }

        return false;
    }
public function hasSharedParent()
    {
        $parent = $this->getParent();

        if ($parent != null && ($parent->isShared() || $parent->hasSharedParent())) {
            return true;
        }

        return false;
    }
public function hasSharedParent ( ) { $ parent = $ this -> getParent ( ) ; if ( $ parent != null && ( $ parent -> isShared ( ) || $ parent -> hasSharedParent ( ) ) ) { return true ; } return false ; }
Checks if one of the current blocks' parents is a shared block.

@return bool
Checks if one of the current blocks parents is a shared block .