src/ngrest/render/RenderActiveWindow.php
public function getActiveWindowObject()
    {
        if ($this->_activeWindowObject === null) {
            $activeWindow = $this->findActiveWindow($this->activeWindowHash);
            $object = Yii::createObject($activeWindow['objectConfig']);
            $object->setItemId($this->itemId);
            $object->setConfigHash($this->config->getHash());
            $object->setActiveWindowHash($this->activeWindowHash);
            Yii::$app->session->set($this->activeWindowHash, $this->itemId);
            $this->_activeWindowObject = $object;
        }
        
        return $this->_activeWindowObject;
    }
public function getActiveWindowObject()
    {
        if ($this->_activeWindowObject === null) {
            $activeWindow = $this->findActiveWindow($this->activeWindowHash);
            $object = Yii::createObject($activeWindow['objectConfig']);
            $object->setItemId($this->itemId);
            $object->setConfigHash($this->config->getHash());
            $object->setActiveWindowHash($this->activeWindowHash);
            Yii::$app->session->set($this->activeWindowHash, $this->itemId);
            $this->_activeWindowObject = $object;
        }
        
        return $this->_activeWindowObject;
    }
public function getActiveWindowObject ( ) { if ( $ this -> _activeWindowObject === null ) { $ activeWindow = $ this -> findActiveWindow ( $ this -> activeWindowHash ) ; $ object = Yii :: createObject ( $ activeWindow [ 'objectConfig' ] ) ; $ object -> setItemId ( $ this -> itemId ) ; $ object -> setConfigHash ( $ this -> config -> getHash ( ) ) ; $ object -> setActiveWindowHash ( $ this -> activeWindowHash ) ; Yii :: $ app -> session -> set ( $ this -> activeWindowHash , $ this -> itemId ) ; $ this -> _activeWindowObject = $ object ; } return $ this -> _activeWindowObject ; }
Get current Active Window Object.

@return \luya\admin\ngrest\base\ActiveWindowInterface
Get current Active Window Object .