private function arrayReplaceRecursiveValue(&$array, $parameters) {
        foreach ($array as $key => $value) {
            // create new key in $array, if it is empty or not an array
            if (!isset($array[$key]) || (isset($array[$key]) && !is_array($array[$key]))) {
                $array[$key] = array();
            }

            // overwrite the value in the base array
            if (is_array($value)) {
                $value = $this->arrayReplaceRecursiveValue($array[$key], $parameters);
            } else {
                $value = $this->parseParameter($value, $parameters);
            }
            $array[$key] = $value;
        }
        return $array;
    }
private function arrayReplaceRecursiveValue(&$array, $parameters) {
        foreach ($array as $key => $value) {
            // create new key in $array, if it is empty or not an array
            if (!isset($array[$key]) || (isset($array[$key]) && !is_array($array[$key]))) {
                $array[$key] = array();
            }

            // overwrite the value in the base array
            if (is_array($value)) {
                $value = $this->arrayReplaceRecursiveValue($array[$key], $parameters);
            } else {
                $value = $this->parseParameter($value, $parameters);
            }
            $array[$key] = $value;
        }
        return $array;
    }
private function arrayReplaceRecursiveValue ( & $ array , $ parameters ) { foreach ( $ array as $ key => $ value ) { // create new key in $array, if it is empty or not an array if ( ! isset ( $ array [ $ key ] ) || ( isset ( $ array [ $ key ] ) && ! is_array ( $ array [ $ key ] ) ) ) { $ array [ $ key ] = array ( ) ; } // overwrite the value in the base array if ( is_array ( $ value ) ) { $ value = $ this -> arrayReplaceRecursiveValue ( $ array [ $ key ] , $ parameters ) ; } else { $ value = $ this -> parseParameter ( $ value , $ parameters ) ; } $ array [ $ key ] = $ value ; } return $ array ; }
Reemplaza recursivamente los parametros en un array
@param type $array
@param type $parameters
@return type
Reemplaza recursivamente los parametros en un array