concrete/src/Block/View/BlockView.php
protected function constructView($mixed)
    {
        if ($mixed instanceof Block) {
            $this->blockType = $mixed->getBlockTypeObject();
            $this->block = $mixed;
            $this->area = $mixed->getBlockAreaObject();
        } else {
            $this->blockType = $mixed;
            if ($this->blockType->controller) {
                $this->controller = $this->blockType->controller;
            }
        }
        $this->blockTypePkgHandle = $this->blockType->getPackageHandle();
        if (!isset($this->controller)) {
            if (isset($this->block)) {
                $this->controller = $this->block->getInstance();
                $this->controller->setBlockObject($this->block);
            } else {
                $this->controller = $this->blockType->getController();
            }
        }
    }
protected function constructView($mixed)
    {
        if ($mixed instanceof Block) {
            $this->blockType = $mixed->getBlockTypeObject();
            $this->block = $mixed;
            $this->area = $mixed->getBlockAreaObject();
        } else {
            $this->blockType = $mixed;
            if ($this->blockType->controller) {
                $this->controller = $this->blockType->controller;
            }
        }
        $this->blockTypePkgHandle = $this->blockType->getPackageHandle();
        if (!isset($this->controller)) {
            if (isset($this->block)) {
                $this->controller = $this->block->getInstance();
                $this->controller->setBlockObject($this->block);
            } else {
                $this->controller = $this->blockType->getController();
            }
        }
    }
protected function constructView ( $ mixed ) { if ( $ mixed instanceof Block ) { $ this -> blockType = $ mixed -> getBlockTypeObject ( ) ; $ this -> block = $ mixed ; $ this -> area = $ mixed -> getBlockAreaObject ( ) ; } else { $ this -> blockType = $ mixed ; if ( $ this -> blockType -> controller ) { $ this -> controller = $ this -> blockType -> controller ; } } $ this -> blockTypePkgHandle = $ this -> blockType -> getPackageHandle ( ) ; if ( ! isset ( $ this -> controller ) ) { if ( isset ( $ this -> block ) ) { $ this -> controller = $ this -> block -> getInstance ( ) ; $ this -> controller -> setBlockObject ( $ this -> block ) ; } else { $ this -> controller = $ this -> blockType -> getController ( ) ; } } }
Construct a block view object

@param mixed $mixed block or block type to view

@return void
Construct a block view object