src/Components.php
public static function drivers($sModule, $sSubType = ''): array
    {
        $aDrivers = static::filter('driver');
        $aOut     = [];

        foreach ($aDrivers as $oDriver) {
            if ($oDriver->forModule == $sModule) {
                if (!empty($sSubType) && $sSubType == $oDriver->subType) {
                    $aOut[] = $oDriver;
                } elseif (empty($sSubType)) {
                    $aOut[] = $oDriver;
                }
            }
        }

        return $aOut;
    }
public static function drivers($sModule, $sSubType = ''): array
    {
        $aDrivers = static::filter('driver');
        $aOut     = [];

        foreach ($aDrivers as $oDriver) {
            if ($oDriver->forModule == $sModule) {
                if (!empty($sSubType) && $sSubType == $oDriver->subType) {
                    $aOut[] = $oDriver;
                } elseif (empty($sSubType)) {
                    $aOut[] = $oDriver;
                }
            }
        }

        return $aOut;
    }
public static function drivers ( $ sModule , $ sSubType = '' ) : array { $ aDrivers = static :: filter ( 'driver' ) ; $ aOut = [ ] ; foreach ( $ aDrivers as $ oDriver ) { if ( $ oDriver -> forModule == $ sModule ) { if ( ! empty ( $ sSubType ) && $ sSubType == $ oDriver -> subType ) { $ aOut [ ] = $ oDriver ; } elseif ( empty ( $ sSubType ) ) { $ aOut [ ] = $ oDriver ; } } } return $ aOut ; }
Returns registered drivers, optionally filtered

@param string $sModule The module to filter for
@param string $sSubTyp The sub-type to filter by

@return Component[]
Returns registered drivers optionally filtered