concrete/src/File/Type/Type.php
public static function getUsedTypeList()
    {
        $app = Application::getFacadeApplication();
        $db = $app->make('database')->connection();
        $stm = $db->query('select distinct fvType from FileVersions where fvIsApproved = 1 and fvType is not null and fvType <> 0');
        $types = [];
        while ($row = $stm->fetch()) {
            $types[] = (int) $row['fvType'];
        }

        return $types;
    }
public static function getUsedTypeList()
    {
        $app = Application::getFacadeApplication();
        $db = $app->make('database')->connection();
        $stm = $db->query('select distinct fvType from FileVersions where fvIsApproved = 1 and fvType is not null and fvType <> 0');
        $types = [];
        while ($row = $stm->fetch()) {
            $types[] = (int) $row['fvType'];
        }

        return $types;
    }
public static function getUsedTypeList ( ) { $ app = Application :: getFacadeApplication ( ) ; $ db = $ app -> make ( 'database' ) -> connection ( ) ; $ stm = $ db -> query ( 'select distinct fvType from FileVersions where fvIsApproved = 1 and fvType is not null and fvType <> 0' ) ; $ types = [ ] ; while ( $ row = $ stm -> fetch ( ) ) { $ types [ ] = ( int ) $ row [ 'fvType' ] ; } return $ types ; }
Get the list of all the file types used by approved file versions.

@return int[]
Get the list of all the file types used by approved file versions .