src/ngrest/base/Api.php
public function actionActiveWindowRender()
    {
        $this->checkAccess('active-window-render');
        
        // generate ngrest active window
        $render = new RenderActiveWindow();
        $render->setItemId(Yii::$app->request->getBodyParam('itemId', false));
        $render->setActiveWindowHash(Yii::$app->request->getBodyParam('activeWindowHash', false));
        
        // process ngrest render view with config context
        $ngrest = new NgRest($this->model->getNgRestConfig());
        
        return [
            'content' => $ngrest->render($render),
            'icon' => $render->getActiveWindowObject()->getIcon(),
            'label' => $render->getActiveWindowObject()->getLabel(),
            'title' => $render->getActiveWindowObject()->getTitle(),
            'requestDate' => time(),
        ];
    }
public function actionActiveWindowRender()
    {
        $this->checkAccess('active-window-render');
        
        // generate ngrest active window
        $render = new RenderActiveWindow();
        $render->setItemId(Yii::$app->request->getBodyParam('itemId', false));
        $render->setActiveWindowHash(Yii::$app->request->getBodyParam('activeWindowHash', false));
        
        // process ngrest render view with config context
        $ngrest = new NgRest($this->model->getNgRestConfig());
        
        return [
            'content' => $ngrest->render($render),
            'icon' => $render->getActiveWindowObject()->getIcon(),
            'label' => $render->getActiveWindowObject()->getLabel(),
            'title' => $render->getActiveWindowObject()->getTitle(),
            'requestDate' => time(),
        ];
    }
public function actionActiveWindowRender ( ) { $ this -> checkAccess ( 'active-window-render' ) ; // generate ngrest active window $ render = new RenderActiveWindow ( ) ; $ render -> setItemId ( Yii :: $ app -> request -> getBodyParam ( 'itemId' , false ) ) ; $ render -> setActiveWindowHash ( Yii :: $ app -> request -> getBodyParam ( 'activeWindowHash' , false ) ) ; // process ngrest render view with config context $ ngrest = new NgRest ( $ this -> model -> getNgRestConfig ( ) ) ; return [ 'content' => $ ngrest -> render ( $ render ) , 'icon' => $ render -> getActiveWindowObject ( ) -> getIcon ( ) , 'label' => $ render -> getActiveWindowObject ( ) -> getLabel ( ) , 'title' => $ render -> getActiveWindowObject ( ) -> getTitle ( ) , 'requestDate' => time ( ) , ] ; }
Renders the index page of an ActiveWindow.

@return array
Renders the index page of an ActiveWindow .