web/UniView.php
protected function findParentBlock($fullBlockName, $viewFileName)
    {
        $parentViewFile = $this->findParentViewFile($viewFileName);
        $viewFilesChain = $this->getViewFilesChain($parentViewFile);
        $savedContent = '';
        foreach ($viewFilesChain as $viewFile) {
            if ($this->viewBlocks($viewFile)->exists($fullBlockName)) {
                $savedContent = $this->viewBlocks($viewFile)->get($fullBlockName);
                break;
            }
        }
        return $savedContent;
    }
protected function findParentBlock($fullBlockName, $viewFileName)
    {
        $parentViewFile = $this->findParentViewFile($viewFileName);
        $viewFilesChain = $this->getViewFilesChain($parentViewFile);
        $savedContent = '';
        foreach ($viewFilesChain as $viewFile) {
            if ($this->viewBlocks($viewFile)->exists($fullBlockName)) {
                $savedContent = $this->viewBlocks($viewFile)->get($fullBlockName);
                break;
            }
        }
        return $savedContent;
    }
protected function findParentBlock ( $ fullBlockName , $ viewFileName ) { $ parentViewFile = $ this -> findParentViewFile ( $ viewFileName ) ; $ viewFilesChain = $ this -> getViewFilesChain ( $ parentViewFile ) ; $ savedContent = '' ; foreach ( $ viewFilesChain as $ viewFile ) { if ( $ this -> viewBlocks ( $ viewFile ) -> exists ( $ fullBlockName ) ) { $ savedContent = $ this -> viewBlocks ( $ viewFile ) -> get ( $ fullBlockName ) ; break ; } } return $ savedContent ; }
Find parent block.
@param string $fullBlockName name of block - name of current block where parentBlock() occured
@return string block body or empty string if not found
Find parent block .