/**
  * @inheritdoc
  */
 public function run()
 {
     $class = $this->model;
     $class = $class::className();
     $models = Communication::getCommunications($this->model->id, $class);
     return $this->render('info', ['models' => $models]);
 }
 /**
  * @inheritdoc
  */
 public function run()
 {
     $class = $this->model;
     $class = $class::className();
     $models = Communication::getCommunications($this->model->id, $class);
     $model = new Communication(['scenario' => 'create']);
     $model->entity = $class;
     $model->entity_id = $this->model->id;
     return $this->render('index', ['models' => $models, 'model' => $model]);
 }
 /**
  * @param Comment $model Comment
  *
  * @return string Comments list
  */
 protected function tree($model)
 {
     $models = Communication::getCommunications($model->entity_id, $model->entity);
     return $this->renderPartial('@net/frenzel/communication/views/widgets/views/_index_item', ['models' => $models]);
 }