concrete/src/Page/Page.php
public static function getCollectionParentIDFromChildID($cID)
    {
        $db = Database::connection();
        $q = 'select cParentID from Pages where cID = ?';
        $cParentID = $db->fetchColumn($q, [$cID]);

        return $cParentID;
    }
public static function getCollectionParentIDFromChildID($cID)
    {
        $db = Database::connection();
        $q = 'select cParentID from Pages where cID = ?';
        $cParentID = $db->fetchColumn($q, [$cID]);

        return $cParentID;
    }
public static function getCollectionParentIDFromChildID ( $ cID ) { $ db = Database :: connection ( ) ; $ q = 'select cParentID from Pages where cID = ?' ; $ cParentID = $ db -> fetchColumn ( $ q , [ $ cID ] ) ; return $ cParentID ; }
Get the parent cID of a page given its cID.

@param int $cID

@return int|null
Get the parent cID of a page given its cID .