concrete/src/Page/Page.php
protected function acquireAreaStylesFromDefaults(\Concrete\Core\Entity\Page\Template $template)
    {
        $pt = $this->getPageTypeObject();
        if (is_object($pt)) {
            $mc = $pt->getPageTypePageTemplateDefaultPageObject($template);
            $db = Database::connection();

            // first, we delete any styles we currently have
            $db->delete('CollectionVersionAreaStyles', ['cID' => $this->getCollectionID(), 'cvID' => $this->getVersionID()]);

            // now we acquire
            $q = 'select issID, arHandle from CollectionVersionAreaStyles where cID = ?';
            $r = $db->executeQuery($q, [$mc->getCollectionID()]);
            while ($row = $r->FetchRow()) {
                $db->executeQuery(
                    'insert into CollectionVersionAreaStyles (cID, cvID, arHandle, issID) values (?, ?, ?, ?)',
                    [
                        $this->getCollectionID(),
                        $this->getVersionID(),
                        $row['arHandle'],
                        $row['issID'],
                    ]
                );
            }
        }
    }
protected function acquireAreaStylesFromDefaults(\Concrete\Core\Entity\Page\Template $template)
    {
        $pt = $this->getPageTypeObject();
        if (is_object($pt)) {
            $mc = $pt->getPageTypePageTemplateDefaultPageObject($template);
            $db = Database::connection();

            // first, we delete any styles we currently have
            $db->delete('CollectionVersionAreaStyles', ['cID' => $this->getCollectionID(), 'cvID' => $this->getVersionID()]);

            // now we acquire
            $q = 'select issID, arHandle from CollectionVersionAreaStyles where cID = ?';
            $r = $db->executeQuery($q, [$mc->getCollectionID()]);
            while ($row = $r->FetchRow()) {
                $db->executeQuery(
                    'insert into CollectionVersionAreaStyles (cID, cvID, arHandle, issID) values (?, ?, ?, ?)',
                    [
                        $this->getCollectionID(),
                        $this->getVersionID(),
                        $row['arHandle'],
                        $row['issID'],
                    ]
                );
            }
        }
    }
protected function acquireAreaStylesFromDefaults ( \ Concrete \ Core \ Entity \ Page \ Template $ template ) { $ pt = $ this -> getPageTypeObject ( ) ; if ( is_object ( $ pt ) ) { $ mc = $ pt -> getPageTypePageTemplateDefaultPageObject ( $ template ) ; $ db = Database :: connection ( ) ; // first, we delete any styles we currently have $ db -> delete ( 'CollectionVersionAreaStyles' , [ 'cID' => $ this -> getCollectionID ( ) , 'cvID' => $ this -> getVersionID ( ) ] ) ; // now we acquire $ q = 'select issID, arHandle from CollectionVersionAreaStyles where cID = ?' ; $ r = $ db -> executeQuery ( $ q , [ $ mc -> getCollectionID ( ) ] ) ; while ( $ row = $ r -> FetchRow ( ) ) { $ db -> executeQuery ( 'insert into CollectionVersionAreaStyles (cID, cvID, arHandle, issID) values (?, ?, ?, ?)' , [ $ this -> getCollectionID ( ) , $ this -> getVersionID ( ) , $ row [ 'arHandle' ] , $ row [ 'issID' ] , ] ) ; } } }
Copy the area styles from a page template.

@param \Concrete\Core\Entity\Page\Template $pageTemplate
Copy the area styles from a page template .