concrete/src/Page/Page.php
public function setTheme($pl)
    {
        $db = Database::connection();
        $db->executeQuery('update CollectionVersions set pThemeID = ? where cID = ? and cvID = ?', [$pl->getThemeID(), $this->cID, $this->vObj->getVersionID()]);
        $this->themeObject = $pl;
    }
public function setTheme($pl)
    {
        $db = Database::connection();
        $db->executeQuery('update CollectionVersions set pThemeID = ? where cID = ? and cvID = ?', [$pl->getThemeID(), $this->cID, $this->vObj->getVersionID()]);
        $this->themeObject = $pl;
    }
public function setTheme ( $ pl ) { $ db = Database :: connection ( ) ; $ db -> executeQuery ( 'update CollectionVersions set pThemeID = ? where cID = ? and cvID = ?' , [ $ pl -> getThemeID ( ) , $ this -> cID , $ this -> vObj -> getVersionID ( ) ] ) ; $ this -> themeObject = $ pl ; }
Set the theme of this page.

@param \Concrete\Core\Page\Theme\Theme $pl
Set the theme of this page .