concrete/src/Page/Page.php
protected function _associateMasterCollectionAttributes($newCID, $masterCID)
    {
        $mc = self::getByID($masterCID, 'ACTIVE');
        $nc = self::getByID($newCID, 'RECENT');
        $attributes = CollectionKey::getAttributeValues($mc);
        foreach($attributes as $attribute) {
            $value = $attribute->getValueObject();
            if ($value) {
                $value = clone $value;
                $nc->setAttribute($attribute->getAttributeKey(), $value);
            }
        }
    }
protected function _associateMasterCollectionAttributes($newCID, $masterCID)
    {
        $mc = self::getByID($masterCID, 'ACTIVE');
        $nc = self::getByID($newCID, 'RECENT');
        $attributes = CollectionKey::getAttributeValues($mc);
        foreach($attributes as $attribute) {
            $value = $attribute->getValueObject();
            if ($value) {
                $value = clone $value;
                $nc->setAttribute($attribute->getAttributeKey(), $value);
            }
        }
    }
protected function _associateMasterCollectionAttributes ( $ newCID , $ masterCID ) { $ mc = self :: getByID ( $ masterCID , 'ACTIVE' ) ; $ nc = self :: getByID ( $ newCID , 'RECENT' ) ; $ attributes = CollectionKey :: getAttributeValues ( $ mc ) ; foreach ( $ attributes as $ attribute ) { $ value = $ attribute -> getValueObject ( ) ; if ( $ value ) { $ value = clone $ value ; $ nc -> setAttribute ( $ attribute -> getAttributeKey ( ) , $ value ) ; } } }
Duplicate the master collection attributes to a newly created page.

@param int $newCID the ID of the newly created page
@param int $mcID the ID of the master collection
Duplicate the master collection attributes to a newly created page .