コード例 #1
0
ファイル: Arhiv.php プロジェクト: kd-brinex/paruram
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getPovod()
 {
     return $this->hasOne(Povod::className(), ['id' => 'povod_id']);
 }
コード例 #2
0
ファイル: PovodSearch.php プロジェクト: kd-brinex/paruram
 public function searchuser($param)
 {
     $query = Povod::find();
 }
コード例 #3
0
ファイル: PovodController.php プロジェクト: kd-brinex/paruram
 /**
  * Finds the OtkPovod model based on its primary key value.
  * If the model is not found, a 404 HTTP exception will be thrown.
  * @param integer $id
  * @return OtkPovod the loaded model
  * @throws NotFoundHttpException if the model cannot be found
  */
 protected function findModel($id)
 {
     if (($model = Povod::findOne($id)) !== null) {
         return $model;
     } else {
         throw new NotFoundHttpException('The requested page does not exist.');
     }
 }
コード例 #4
0
ファイル: Text.php プロジェクト: kd-brinex/paruram
 public function getPovodlist()
 {
     $models = Povod::find()->asArray()->all();
     return ArrayHelper::map($models, 'id', 'name');
 }