private buildBreadcrumbs ( array $pieces, $level ) : array | ||
$pieces | array | |
Результат | array |
private function buildBreadcrumbs(array $pieces, $level = 0)
{
if ($level >= sizeof($pieces)) {
return array('uri' => '#');
}
return array('label' => $pieces[$level], 'module' => 'admin', 'controller' => $this->_getParam('controller'), 'action' => $this->_getParam('action'), 'params' => array('id' => $this->_getParam('id'), 'path' => implode(self::SEPARATOR, array_slice($pieces, 0, $level + 1))), 'pages' => array($this->buildBreadcrumbs($pieces, $level + 1)));
}