eZ\Bundle\EzPublishCoreBundle\EventListener\SiteAccessListener::getViewParameters PHP Метод

getViewParameters() приватный Метод

In the pathinfo, view parameters are in the form /(param_name)/param_value.
private getViewParameters ( string $pathinfo ) : array
$pathinfo string
Результат array First element is the cleaned up pathinfo (without the view parameters string). Second element is the view parameters hash. Third element is the view parameters string (e.g. /(foo)/bar)
    private function getViewParameters($pathinfo)
    {
        // No view parameters, get out of here.
        if (($vpStart = strpos($pathinfo, '/(')) === false) {
            return array($pathinfo, array(), '');
        }
        $vpString = substr($pathinfo, $vpStart + 1);
        $viewParameters = $this->generateViewParametersArray($vpString);
        // Now remove the view parameters string from $semanticPathinfo
        $pathinfo = substr($pathinfo, 0, $vpStart);
        return array($pathinfo, $viewParameters, "/{$vpString}");
    }