コード例 #1
0
 /**
  * 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]);
 }
コード例 #2
0
 /**
  * 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]);
 }
コード例 #3
0
ファイル: DevicesController.php プロジェクト: Griff19/it_base
 /**
  * @return string
  */
 public function actionFindDevice()
 {
     $deviceSearch = new DevicesSearch();
     $deviceProvider = $deviceSearch->search(Yii::$app->request->queryParams);
     return $this->render('searchDevice', ['deviceSearch' => $deviceSearch, 'deviceProvider' => $deviceProvider]);
 }