lib/Disco.php
protected function filterList($list)
    {
        $conf = Configuration::getConfig(self::CONFIG_FILE_NAME);
        $disableWhitelisting
            = $conf->getBoolean(self::PROPNAME_DISABLE_WHITELISTING, false);

        if (!isset($this->originalsp['disco.doNotFilterIdps'])
            || !$this->originalsp['disco.doNotFilterIdps']
        ) {
            $list = parent::filterList($list);
            $list = $this->scoping($list);
            if (!$disableWhitelisting) {
                $list = $this->whitelisting($list);
            }
            $list = $this->greylisting($list);
            $list = $this->greylistingPerSP($list, $this->originalsp);
        }

        if (empty($list)) {
            throw new Exception('All IdPs has been filtered out. And no one left.');
        }

        return $list;
    }
protected function filterList($list)
    {
        $conf = Configuration::getConfig(self::CONFIG_FILE_NAME);
        $disableWhitelisting
            = $conf->getBoolean(self::PROPNAME_DISABLE_WHITELISTING, false);

        if (!isset($this->originalsp['disco.doNotFilterIdps'])
            || !$this->originalsp['disco.doNotFilterIdps']
        ) {
            $list = parent::filterList($list);
            $list = $this->scoping($list);
            if (!$disableWhitelisting) {
                $list = $this->whitelisting($list);
            }
            $list = $this->greylisting($list);
            $list = $this->greylistingPerSP($list, $this->originalsp);
        }

        if (empty($list)) {
            throw new Exception('All IdPs has been filtered out. And no one left.');
        }

        return $list;
    }
protected function filterList ( $ list ) { $ conf = Configuration :: getConfig ( self :: CONFIG_FILE_NAME ) ; $ disableWhitelisting = $ conf -> getBoolean ( self :: PROPNAME_DISABLE_WHITELISTING , false ) ; if ( ! isset ( $ this -> originalsp [ 'disco.doNotFilterIdps' ] ) || ! $ this -> originalsp [ 'disco.doNotFilterIdps' ] ) { $ list = parent :: filterList ( $ list ) ; $ list = $ this -> scoping ( $ list ) ; if ( ! $ disableWhitelisting ) { $ list = $ this -> whitelisting ( $ list ) ; } $ list = $ this -> greylisting ( $ list ) ; $ list = $ this -> greylistingPerSP ( $ list , $ this -> originalsp ) ; } if ( empty ( $ list ) ) { throw new Exception ( 'All IdPs has been filtered out. And no one left.' ) ; } return $ list ; }
Filter a list of entities according to any filters defined in the parent class, plus

@param array $list A map of entities to filter.
@return array The list in $list after filtering entities.
@throws Exception if all IdPs are filtered out and no one left.
Filter a list of entities according to any filters defined in the parent class plus