concrete/src/Block/BlockType/Set.php
protected function rescanDisplayOrder()
    {
        $displayOrder = 0;
        $btsID = $this->getBlockTypeSetID();
        $app = Application::getFacadeApplication();
        $db = $app->make(Connection::class);
        $rs = $db->executeQuery('select btID from BlockTypeSetBlockTypes where btsID = ? order by displayOrder asc', [$btsID]);
        while (($btID = $rs->fetchColumn()) !== false) {
            $db->update(
                'BlockTypeSetBlockTypes',
                [
                    'displayOrder' => $displayOrder,
                ],
                [
                    'btID' => $btID,
                    'btsID' => $btsID,
                ]
            );
            ++$displayOrder;
        }
    }
protected function rescanDisplayOrder()
    {
        $displayOrder = 0;
        $btsID = $this->getBlockTypeSetID();
        $app = Application::getFacadeApplication();
        $db = $app->make(Connection::class);
        $rs = $db->executeQuery('select btID from BlockTypeSetBlockTypes where btsID = ? order by displayOrder asc', [$btsID]);
        while (($btID = $rs->fetchColumn()) !== false) {
            $db->update(
                'BlockTypeSetBlockTypes',
                [
                    'displayOrder' => $displayOrder,
                ],
                [
                    'btID' => $btID,
                    'btsID' => $btsID,
                ]
            );
            ++$displayOrder;
        }
    }
protected function rescanDisplayOrder ( ) { $ displayOrder = 0 ; $ btsID = $ this -> getBlockTypeSetID ( ) ; $ app = Application :: getFacadeApplication ( ) ; $ db = $ app -> make ( Connection :: class ) ; $ rs = $ db -> executeQuery ( 'select btID from BlockTypeSetBlockTypes where btsID = ? order by displayOrder asc' , [ $ btsID ] ) ; while ( ( $ btID = $ rs -> fetchColumn ( ) ) !== false ) { $ db -> update ( 'BlockTypeSetBlockTypes' , [ 'displayOrder' => $ displayOrder , ] , [ 'btID' => $ btID , 'btsID' => $ btsID , ] ) ; ++ $ displayOrder ; } }
Regenereate the display order values of the block types associated to this set.
Regenereate the display order values of the block types associated to this set .