Contao\MemberGroupModel::findAllActive PHP Method

findAllActive() public static method

Find all active groups
public static findAllActive ( array $arrOptions = [] ) : Collection | MemberGroupModel | null
$arrOptions array An optional options array
return Contao\Model\Collection | MemberGroupModel | null A collection of models or null if there are no member groups
    public static function findAllActive(array $arrOptions = array())
    {
        $t = static::$strTable;
        $time = \Date::floorToMinute();
        return static::findBy(array("{$t}.disable='' AND ({$t}.start='' OR {$t}.start<='{$time}') AND ({$t}.stop='' OR {$t}.stop>'" . ($time + 60) . "')"), null, $arrOptions);
    }