private function getValue($property_key, $config = null, &$found)
    {
        if (null === $config) {
            $config = $this->config;
        }

        foreach ($config as $key => $value) {
            if ($key === $property_key) {
                $found = true;

                return $value;
            }
            if (is_array($value)) {
                $ret = $this->getValue($property_key, $value, $found);

                if (null !== $ret) {
                    return $ret;
                }
            }
        }
    }
private function getValue($property_key, $config = null, &$found)
    {
        if (null === $config) {
            $config = $this->config;
        }

        foreach ($config as $key => $value) {
            if ($key === $property_key) {
                $found = true;

                return $value;
            }
            if (is_array($value)) {
                $ret = $this->getValue($property_key, $value, $found);

                if (null !== $ret) {
                    return $ret;
                }
            }
        }
    }
private function getValue ( $ property_key , $ config = null , & $ found ) { if ( null === $ config ) { $ config = $ this -> config ; } foreach ( $ config as $ key => $ value ) { if ( $ key === $ property_key ) { $ found = true ; return $ value ; } if ( is_array ( $ value ) ) { $ ret = $ this -> getValue ( $ property_key , $ value , $ found ) ; if ( null !== $ ret ) { return $ ret ; } } } }
Scan recursively an array to find a value of a given key.

@param string  $property_key The array key
@param array   $config       The array to scan
@param boolean $found        if the key was found

@return mixed The value or null if not found
Scan recursively an array to find a value of a given key .