concrete/src/Page/Collection/Collection.php
public function hasAliasedContent()
    {
        $db = Loader::db();
        // aliased content is content on the particular page that is being
        // used elsewhere - but the content on the PAGE is the original version
        $v = [$this->cID];
        $q = 'select bID from CollectionVersionBlocks where cID = ? and isOriginal = 1';
        $r = $db->query($q, $v);
        $bIDArray = [];
        if ($r) {
            while ($row = $r->fetchRow()) {
                $bIDArray[] = $row['bID'];
            }
            if (count($bIDArray) > 0) {
                $bIDList = implode(',', $bIDArray);
                $v2 = [$bIDList, $this->cID];
                $q2 = 'select cID from CollectionVersionBlocks where bID in (?) and cID <> ? limit 1';
                $aliasedCID = $db->getOne($q2, $v2);
                if ($aliasedCID > 0) {
                    return true;
                }
            }
        }

        return false;
    }
public function hasAliasedContent()
    {
        $db = Loader::db();
        // aliased content is content on the particular page that is being
        // used elsewhere - but the content on the PAGE is the original version
        $v = [$this->cID];
        $q = 'select bID from CollectionVersionBlocks where cID = ? and isOriginal = 1';
        $r = $db->query($q, $v);
        $bIDArray = [];
        if ($r) {
            while ($row = $r->fetchRow()) {
                $bIDArray[] = $row['bID'];
            }
            if (count($bIDArray) > 0) {
                $bIDList = implode(',', $bIDArray);
                $v2 = [$bIDList, $this->cID];
                $q2 = 'select cID from CollectionVersionBlocks where bID in (?) and cID <> ? limit 1';
                $aliasedCID = $db->getOne($q2, $v2);
                if ($aliasedCID > 0) {
                    return true;
                }
            }
        }

        return false;
    }
public function hasAliasedContent ( ) { $ db = Loader :: db ( ) ; // aliased content is content on the particular page that is being // used elsewhere - but the content on the PAGE is the original version $ v = [ $ this -> cID ] ; $ q = 'select bID from CollectionVersionBlocks where cID = ? and isOriginal = 1' ; $ r = $ db -> query ( $ q , $ v ) ; $ bIDArray = [ ] ; if ( $ r ) { while ( $ row = $ r -> fetchRow ( ) ) { $ bIDArray [ ] = $ row [ 'bID' ] ; } if ( count ( $ bIDArray ) > 0 ) { $ bIDList = implode ( ',' , $ bIDArray ) ; $ v2 = [ $ bIDList , $ this -> cID ] ; $ q2 = 'select cID from CollectionVersionBlocks where bID in (?) and cID <> ? limit 1' ; $ aliasedCID = $ db -> getOne ( $ q2 , $ v2 ) ; if ( $ aliasedCID > 0 ) { return true ; } } } return false ; }
Does this collection contain blocks that are aliased in other pages?

@return bool
Does this collection contain blocks that are aliased in other pages?