private function meetFilters($row, array $filters)
    {
        $matched = true;
        if (count($filters) && count(array_diff(self::PERIODS, array_keys($filters)))) {

            $startDate = current($row['delivery_execution_started_at']);
            $startTime = $startDate ? \tao_helpers_Date::getTimeStamp($startDate) : 0;
            $endDate = current($row['delivery_execution_finished_at']);
            $endTime = $endDate ? \tao_helpers_Date::getTimeStamp($endDate) : 0;

            if ($startTime) {
                if ($matched && array_key_exists('startfrom', $filters) && $filters['startfrom']) {
                    $matched = $startTime >= $filters['startfrom'];
                }
                if ($matched && array_key_exists('startto', $filters) && $filters['startto']) {
                    $matched = $startTime <= $filters['startto'];
                }
            }

            if ($endTime && $matched) {
                if ($matched && array_key_exists('endfrom', $filters) && $filters['endfrom']) {
                    $matched = $endTime >= $filters['endfrom'];
                }
                if ($matched && array_key_exists('endto', $filters) && $filters['endto']) {
                    $matched = $endTime <= $filters['endto'];
                }
            }
        }
        return $matched;
    }
private function meetFilters($row, array $filters)
    {
        $matched = true;
        if (count($filters) && count(array_diff(self::PERIODS, array_keys($filters)))) {

            $startDate = current($row['delivery_execution_started_at']);
            $startTime = $startDate ? \tao_helpers_Date::getTimeStamp($startDate) : 0;
            $endDate = current($row['delivery_execution_finished_at']);
            $endTime = $endDate ? \tao_helpers_Date::getTimeStamp($endDate) : 0;

            if ($startTime) {
                if ($matched && array_key_exists('startfrom', $filters) && $filters['startfrom']) {
                    $matched = $startTime >= $filters['startfrom'];
                }
                if ($matched && array_key_exists('startto', $filters) && $filters['startto']) {
                    $matched = $startTime <= $filters['startto'];
                }
            }

            if ($endTime && $matched) {
                if ($matched && array_key_exists('endfrom', $filters) && $filters['endfrom']) {
                    $matched = $endTime >= $filters['endfrom'];
                }
                if ($matched && array_key_exists('endto', $filters) && $filters['endto']) {
                    $matched = $endTime <= $filters['endto'];
                }
            }
        }
        return $matched;
    }
private function meetFilters ( $ row , array $ filters ) { $ matched = true ; if ( count ( $ filters ) && count ( array_diff ( self :: PERIODS , array_keys ( $ filters ) ) ) ) { $ startDate = current ( $ row [ 'delivery_execution_started_at' ] ) ; $ startTime = $ startDate ? \ tao_helpers_Date :: getTimeStamp ( $ startDate ) : 0 ; $ endDate = current ( $ row [ 'delivery_execution_finished_at' ] ) ; $ endTime = $ endDate ? \ tao_helpers_Date :: getTimeStamp ( $ endDate ) : 0 ; if ( $ startTime ) { if ( $ matched && array_key_exists ( 'startfrom' , $ filters ) && $ filters [ 'startfrom' ] ) { $ matched = $ startTime >= $ filters [ 'startfrom' ] ; } if ( $ matched && array_key_exists ( 'startto' , $ filters ) && $ filters [ 'startto' ] ) { $ matched = $ startTime <= $ filters [ 'startto' ] ; } } if ( $ endTime && $ matched ) { if ( $ matched && array_key_exists ( 'endfrom' , $ filters ) && $ filters [ 'endfrom' ] ) { $ matched = $ endTime >= $ filters [ 'endfrom' ] ; } if ( $ matched && array_key_exists ( 'endto' , $ filters ) && $ filters [ 'endto' ] ) { $ matched = $ endTime <= $ filters [ 'endto' ] ; } } } return $ matched ; }
Check that data is apply to these filter params
@param $row
@param array $filters
@return bool
Check that data is apply to these filter params