public function getPageMainZones()
    {
        $result = array();

        if (null === $this->getLayout()) {
            return $result;
        }

        $currentpageRootZones = $this->getContentSet();
        $layoutZones = $this->getLayout()->getZones();
        $count = count($layoutZones);
        for ($i = 0; $i < $count; $i++) {
            $zoneInfos = $layoutZones[$i];
            $currentZone = $currentpageRootZones->item($i);

            if (
                null !== $currentZone
                && null !== $zoneInfos
                && true === property_exists($zoneInfos, 'mainZone')
                && true === $zoneInfos->mainZone
            ) {
                $result[$currentZone->getUid()] = $currentZone;
            }
        }

        return $result;
    }
public function getPageMainZones()
    {
        $result = array();

        if (null === $this->getLayout()) {
            return $result;
        }

        $currentpageRootZones = $this->getContentSet();
        $layoutZones = $this->getLayout()->getZones();
        $count = count($layoutZones);
        for ($i = 0; $i < $count; $i++) {
            $zoneInfos = $layoutZones[$i];
            $currentZone = $currentpageRootZones->item($i);

            if (
                null !== $currentZone
                && null !== $zoneInfos
                && true === property_exists($zoneInfos, 'mainZone')
                && true === $zoneInfos->mainZone
            ) {
                $result[$currentZone->getUid()] = $currentZone;
            }
        }

        return $result;
    }
public function getPageMainZones ( ) { $ result = array ( ) ; if ( null === $ this -> getLayout ( ) ) { return $ result ; } $ currentpageRootZones = $ this -> getContentSet ( ) ; $ layoutZones = $ this -> getLayout ( ) -> getZones ( ) ; $ count = count ( $ layoutZones ) ; for ( $ i = 0 ; $ i < $ count ; $ i ++ ) { $ zoneInfos = $ layoutZones [ $ i ] ; $ currentZone = $ currentpageRootZones -> item ( $ i ) ; if ( null !== $ currentZone && null !== $ zoneInfos && true === property_exists ( $ zoneInfos , 'mainZone' ) && true === $ zoneInfos -> mainZone ) { $ result [ $ currentZone -> getUid ( ) ] = $ currentZone ; } } return $ result ; }
Returns the main zones of the page
Page's mainzone can't be unlinked.

@return array
Returns the main zones of the page Page s mainzone can t be unlinked .