/** * Displays a single Workplaces model. * @param integer $id * @return mixed */ public function actionView($id) { $searchEmployeeModel = new WpOwnersSearch(); $employeeProvider = $searchEmployeeModel->search(Yii::$app->request->queryParams, $id); $searchDeviceModel = new DevicesSearch(); $deviceProvider = $searchDeviceModel->search(Yii::$app->request->queryParams, $id); $searchVoip = new VoipnumbersSearch(); $voipProvider = $searchVoip->search(Yii::$app->request->queryParams, 0, $id); return $this->render('view', ['model' => $this->findModel($id), 'employeeProvider' => $employeeProvider, 'searchDeviceModel' => $searchDeviceModel, 'deviceProvider' => $deviceProvider, 'voipProvider' => $voipProvider]); }
/** * Lists all Devices models. * @return mixed */ public function actionIndex() { $searchModel = new DevicesSearch(); $dataProvider = $searchModel->search(Yii::$app->request->queryParams); return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]); }
/** * @return string */ public function actionFindDevice() { $deviceSearch = new DevicesSearch(); $deviceProvider = $deviceSearch->search(Yii::$app->request->queryParams); return $this->render('searchDevice', ['deviceSearch' => $deviceSearch, 'deviceProvider' => $deviceProvider]); }