private function getContainerParameters($item)
    {
        $matches = array();
        if (preg_match('/^%([^%]+)%$/', $item, $matches)) {
            if ($this->hasParameter($matches[1])) {
                return $this->getParameter($matches[1]);
            }
        }

        if (preg_match_all('/%([^%]+)%/', $item, $matches, PREG_PATTERN_ORDER)) {
            foreach ($matches[1] as $expr) {
                if ($this->hasParameter($expr)) {
                    $item = str_replace('%'.$expr.'%', $this->getParameter($expr), $item);
                }
            }
        }

        return $item;
    }
private function getContainerParameters($item)
    {
        $matches = array();
        if (preg_match('/^%([^%]+)%$/', $item, $matches)) {
            if ($this->hasParameter($matches[1])) {
                return $this->getParameter($matches[1]);
            }
        }

        if (preg_match_all('/%([^%]+)%/', $item, $matches, PREG_PATTERN_ORDER)) {
            foreach ($matches[1] as $expr) {
                if ($this->hasParameter($expr)) {
                    $item = str_replace('%'.$expr.'%', $this->getParameter($expr), $item);
                }
            }
        }

        return $item;
    }
private function getContainerParameters ( $ item ) { $ matches = array ( ) ; if ( preg_match ( '/^%([^%]+)%$/' , $ item , $ matches ) ) { if ( $ this -> hasParameter ( $ matches [ 1 ] ) ) { return $ this -> getParameter ( $ matches [ 1 ] ) ; } } if ( preg_match_all ( '/%([^%]+)%/' , $ item , $ matches , PREG_PATTERN_ORDER ) ) { foreach ( $ matches [ 1 ] as $ expr ) { if ( $ this -> hasParameter ( $ expr ) ) { $ item = str_replace ( '%' . $ expr . '%' , $ this -> getParameter ( $ expr ) , $ item ) ; } } } return $ item ; }
Replaces known container parameters key by their values.

@param string $item

@return string
Replaces known container parameters key by their values .