protected function _prepareWholeData($ruleKey, array $data, $function)
    {
        foreach ($data as $key => $value) {
            if (preg_match($ruleKey, $key)) {
                $data[$key] = $this->_callUserFunction($function, $key, $value, null);
            }
        }

        return $data;
    }
protected function _prepareWholeData($ruleKey, array $data, $function)
    {
        foreach ($data as $key => $value) {
            if (preg_match($ruleKey, $key)) {
                $data[$key] = $this->_callUserFunction($function, $key, $value, null);
            }
        }

        return $data;
    }
protected function _prepareWholeData ( $ ruleKey , array $ data , $ function ) { foreach ( $ data as $ key => $ value ) { if ( preg_match ( $ ruleKey , $ key ) ) { $ data [ $ key ] = $ this -> _callUserFunction ( $ function , $ key , $ value , null ) ; } } return $ data ; }
allow to use return preparation on all data in object

@param string $ruleKey
@param array $data
@param array|string|\Closure $function
@return array
allow to use return preparation on all data in object