concrete/src/Block/Block.php
public function getCustomStyleSetID()
    {
        $db = Loader::db();
        if (!isset($this->issID)) {
            $co = $this->getBlockCollectionObject();

            $arHandle = $this->getAreaHandle();
            if ($arHandle) {
                $a = $this->getBlockAreaObject();
                if ($a->isGlobalArea()) {
                    // then we need to check against the global area name. We currently have the wrong area handle passed in
                    $arHandle = STACKS_AREA_NAME;
                }

                $v = [
                    $co->getCollectionID(),
                    $co->getVersionID(),
                    $arHandle,
                    $this->getBlockID(),
                ];

                $this->issID = (int) $db->GetOne(
                    'select issID from CollectionVersionBlockStyles where cID = ? and cvID = ? and arHandle = ? and bID = ?',
                    $v
                );
            } else {
                $this->issID = 0;
            }
        }

        return $this->issID;
    }
public function getCustomStyleSetID()
    {
        $db = Loader::db();
        if (!isset($this->issID)) {
            $co = $this->getBlockCollectionObject();

            $arHandle = $this->getAreaHandle();
            if ($arHandle) {
                $a = $this->getBlockAreaObject();
                if ($a->isGlobalArea()) {
                    // then we need to check against the global area name. We currently have the wrong area handle passed in
                    $arHandle = STACKS_AREA_NAME;
                }

                $v = [
                    $co->getCollectionID(),
                    $co->getVersionID(),
                    $arHandle,
                    $this->getBlockID(),
                ];

                $this->issID = (int) $db->GetOne(
                    'select issID from CollectionVersionBlockStyles where cID = ? and cvID = ? and arHandle = ? and bID = ?',
                    $v
                );
            } else {
                $this->issID = 0;
            }
        }

        return $this->issID;
    }
public function getCustomStyleSetID ( ) { $ db = Loader :: db ( ) ; if ( ! isset ( $ this -> issID ) ) { $ co = $ this -> getBlockCollectionObject ( ) ; $ arHandle = $ this -> getAreaHandle ( ) ; if ( $ arHandle ) { $ a = $ this -> getBlockAreaObject ( ) ; if ( $ a -> isGlobalArea ( ) ) { // then we need to check against the global area name. We currently have the wrong area handle passed in $ arHandle = STACKS_AREA_NAME ; } $ v = [ $ co -> getCollectionID ( ) , $ co -> getVersionID ( ) , $ arHandle , $ this -> getBlockID ( ) , ] ; $ this -> issID = ( int ) $ db -> GetOne ( 'select issID from CollectionVersionBlockStyles where cID = ? and cvID = ? and arHandle = ? and bID = ?' , $ v ) ; } else { $ this -> issID = 0 ; } } return $ this -> issID ; }
Get the ID of the custom style set.

@return int returns 0 or false if the block does not have custom styles
Get the ID of the custom style set .