protected function _parseNestedValues($values)
    {
        foreach ($values as $key => $value) {
            if ($value === '1') {
                $value = true;
            }
            if ($value === '') {
                $value = false;
            }
            unset($values[$key]);
            if (strpos($key, '.') !== false) {
                $values = Hash::insert($values, $key, $value);
            } else {
                $values[$key] = $value;
            }
        }

        return $values;
    }
protected function _parseNestedValues($values)
    {
        foreach ($values as $key => $value) {
            if ($value === '1') {
                $value = true;
            }
            if ($value === '') {
                $value = false;
            }
            unset($values[$key]);
            if (strpos($key, '.') !== false) {
                $values = Hash::insert($values, $key, $value);
            } else {
                $values[$key] = $value;
            }
        }

        return $values;
    }
protected function _parseNestedValues ( $ values ) { foreach ( $ values as $ key => $ value ) { if ( $ value === '1' ) { $ value = true ; } if ( $ value === '' ) { $ value = false ; } unset ( $ values [ $ key ] ) ; if ( strpos ( $ key , '.' ) !== false ) { $ values = Hash :: insert ( $ values , $ key , $ value ) ; } else { $ values [ $ key ] = $ value ; } } return $ values ; }
parses nested values out of keys.

@param array $values Values to be exploded.
@return array Array of values exploded
parses nested values out of keys .