concrete/src/Page/Page.php
public function setPageDraftTargetParentPageID($cParentID)
    {
        if ($cParentID != $this->getPageDraftTargetParentPageID()) {
            Section::unregisterPage($this);
        }
        $db = Database::connection();
        $cParentID = intval($cParentID);
        $db->executeQuery('update Pages set cDraftTargetParentPageID = ? where cID = ?', [$cParentID, $this->cID]);
        $this->cDraftTargetParentPageID = $cParentID;

        Section::registerPage($this);
    }
public function setPageDraftTargetParentPageID($cParentID)
    {
        if ($cParentID != $this->getPageDraftTargetParentPageID()) {
            Section::unregisterPage($this);
        }
        $db = Database::connection();
        $cParentID = intval($cParentID);
        $db->executeQuery('update Pages set cDraftTargetParentPageID = ? where cID = ?', [$cParentID, $this->cID]);
        $this->cDraftTargetParentPageID = $cParentID;

        Section::registerPage($this);
    }
public function setPageDraftTargetParentPageID ( $ cParentID ) { if ( $ cParentID != $ this -> getPageDraftTargetParentPageID ( ) ) { Section :: unregisterPage ( $ this ) ; } $ db = Database :: connection ( ) ; $ cParentID = intval ( $ cParentID ) ; $ db -> executeQuery ( 'update Pages set cDraftTargetParentPageID = ? where cID = ?' , [ $ cParentID , $ this -> cID ] ) ; $ this -> cDraftTargetParentPageID = $ cParentID ; Section :: registerPage ( $ this ) ; }
Set the ID of the draft parent page ID.

@param int $cParentID
Set the ID of the draft parent page ID .