concrete/src/Block/BlockType/Set.php
public static function getListByPackage($pkg)
    {
        $result = [];
        $pkgID = (int) (is_object($pkg) ? $pkg->getPackageID() : $pkg);
        if ($pkgID !== 0) {
            $app = Application::getFacadeApplication();
            $db = $app->make(Connection::class);
            $rs = $db->executeQuery('select btsID from BlockTypeSets where pkgID = ? order by btsID asc', [$pkgID]);
            while (($btsID = $rs->fetchColumn()) !== false) {
                $result[] = static::getByID($btsID);
            }
        }

        return $result;
    }
public static function getListByPackage($pkg)
    {
        $result = [];
        $pkgID = (int) (is_object($pkg) ? $pkg->getPackageID() : $pkg);
        if ($pkgID !== 0) {
            $app = Application::getFacadeApplication();
            $db = $app->make(Connection::class);
            $rs = $db->executeQuery('select btsID from BlockTypeSets where pkgID = ? order by btsID asc', [$pkgID]);
            while (($btsID = $rs->fetchColumn()) !== false) {
                $result[] = static::getByID($btsID);
            }
        }

        return $result;
    }
public static function getListByPackage ( $ pkg ) { $ result = [ ] ; $ pkgID = ( int ) ( is_object ( $ pkg ) ? $ pkg -> getPackageID ( ) : $ pkg ) ; if ( $ pkgID !== 0 ) { $ app = Application :: getFacadeApplication ( ) ; $ db = $ app -> make ( Connection :: class ) ; $ rs = $ db -> executeQuery ( 'select btsID from BlockTypeSets where pkgID = ? order by btsID asc' , [ $ pkgID ] ) ; while ( ( $ btsID = $ rs -> fetchColumn ( ) ) !== false ) { $ result [ ] = static :: getByID ( $ btsID ) ; } } return $ result ; }
Get the list of block type sets defined by a package.

@param \Concrete\Core\Entity\Package|\Concrete\Core\Package\Package|int $pkg

@return static[]
Get the list of block type sets defined by a package .