public function getInheritedZones($uidOnly = false)
    {
        $inheritedZones = array();
        $uidOnly = (isset($uidOnly) && is_bool($uidOnly)) ? $uidOnly : false;
        if (null !== $this->getParent()) {
            $parentZones = $this->getParent()->getContentSet();
            $cPageRootZoneContainer = $this->getContentSet();
            foreach ($cPageRootZoneContainer as $currentpageRootZone) {
                $result = $parentZones->indexOfByUid($currentpageRootZone);
                if ($result) {
                    $inheritedZones[$currentpageRootZone->getUid()] = $currentpageRootZone;
                }
            }
            if ($uidOnly) {
                $inheritedZones = array_keys($inheritedZones);
            }
        }

        return $inheritedZones;
    }
public function getInheritedZones($uidOnly = false)
    {
        $inheritedZones = array();
        $uidOnly = (isset($uidOnly) && is_bool($uidOnly)) ? $uidOnly : false;
        if (null !== $this->getParent()) {
            $parentZones = $this->getParent()->getContentSet();
            $cPageRootZoneContainer = $this->getContentSet();
            foreach ($cPageRootZoneContainer as $currentpageRootZone) {
                $result = $parentZones->indexOfByUid($currentpageRootZone);
                if ($result) {
                    $inheritedZones[$currentpageRootZone->getUid()] = $currentpageRootZone;
                }
            }
            if ($uidOnly) {
                $inheritedZones = array_keys($inheritedZones);
            }
        }

        return $inheritedZones;
    }
public function getInheritedZones ( $ uidOnly = false ) { $ inheritedZones = array ( ) ; $ uidOnly = ( isset ( $ uidOnly ) && is_bool ( $ uidOnly ) ) ? $ uidOnly : false ; if ( null !== $ this -> getParent ( ) ) { $ parentZones = $ this -> getParent ( ) -> getContentSet ( ) ; $ cPageRootZoneContainer = $ this -> getContentSet ( ) ; foreach ( $ cPageRootZoneContainer as $ currentpageRootZone ) { $ result = $ parentZones -> indexOfByUid ( $ currentpageRootZone ) ; if ( $ result ) { $ inheritedZones [ $ currentpageRootZone -> getUid ( ) ] = $ currentpageRootZone ; } } if ( $ uidOnly ) { $ inheritedZones = array_keys ( $ inheritedZones ) ; } } return $ inheritedZones ; }
Tells which "rootContentset" is inherited from currentpage's parent.

@param boolean               $uidOnly

@return array                                    Array of contentset uids
Tells which rootContentset is inherited from currentpage s parent .