src/Detail/Filtering/Zend/InputFilter/BaseFilter.php
public function getValues()
    {
        // When there's no data and the filter itself is not required,
        // we don't return values
        if (!$this->data && !$this->isRequired()) {
            return null;
        }

        // Don't return any values when "inputsToFilter" is set to empty array
        if (!$this->needsFiltering()) {
            return array();
        }

        return parent::getValues();
    }
public function getValues()
    {
        // When there's no data and the filter itself is not required,
        // we don't return values
        if (!$this->data && !$this->isRequired()) {
            return null;
        }

        // Don't return any values when "inputsToFilter" is set to empty array
        if (!$this->needsFiltering()) {
            return array();
        }

        return parent::getValues();
    }
public function getValues ( ) { // When there's no data and the filter itself is not required, // we don't return values if ( ! $ this -> data && ! $ this -> isRequired ( ) ) { return null ; } // Don't return any values when "inputsToFilter" is set to empty array if ( ! $ this -> needsFiltering ( ) ) { return array ( ) ; } return parent :: getValues ( ) ; }
Return a list of filtered values.

@return array|null
Return a list of filtered values .