lib/controllers/ObjectController.php
public function actionActivity()
    {
        if (empty($_GET['id']) || !($object = $this->params['object'] = Registry::getObject($_GET['id'], false)) || !($typeItem = $this->params['typeItem'] = $object->objectTypeItem)) {
            throw new HttpException(404, "Unknown object.");
        }
        if (!$object->can('read')) {
            throw new HttpException(403, "Unable to access object.");
        }
        Yii::$app->response->task = 'dialog';
        Yii::$app->response->taskOptions = ['title' => 'Activity for ' . $object->descriptor , 'width' => '100%', 'isForm' => false];
        Yii::$app->response->view = 'activity';
        Yii::$app->request->object = $object;
    }
public function actionActivity()
    {
        if (empty($_GET['id']) || !($object = $this->params['object'] = Registry::getObject($_GET['id'], false)) || !($typeItem = $this->params['typeItem'] = $object->objectTypeItem)) {
            throw new HttpException(404, "Unknown object.");
        }
        if (!$object->can('read')) {
            throw new HttpException(403, "Unable to access object.");
        }
        Yii::$app->response->task = 'dialog';
        Yii::$app->response->taskOptions = ['title' => 'Activity for ' . $object->descriptor , 'width' => '100%', 'isForm' => false];
        Yii::$app->response->view = 'activity';
        Yii::$app->request->object = $object;
    }
public function actionActivity ( ) { if ( empty ( $ _GET [ 'id' ] ) || ! ( $ object = $ this -> params [ 'object' ] = Registry :: getObject ( $ _GET [ 'id' ] , false ) ) || ! ( $ typeItem = $ this -> params [ 'typeItem' ] = $ object -> objectTypeItem ) ) { throw new HttpException ( 404 , "Unknown object." ) ; } if ( ! $ object -> can ( 'read' ) ) { throw new HttpException ( 403 , "Unable to access object." ) ; } Yii :: $ app -> response -> task = 'dialog' ; Yii :: $ app -> response -> taskOptions = [ 'title' => 'Activity for ' . $ object -> descriptor , 'width' => '100%' , 'isForm' => false ] ; Yii :: $ app -> response -> view = 'activity' ; Yii :: $ app -> request -> object = $ object ; }
[[@doctodo method_description:actionActivity]].

@throws HttpException [[@doctodo exception_description:HttpException]]
[[ @doctodo method_description : actionActivity ]] .