From d6caffb11c87ffffa2259b3b28c254efe212d99f Mon Sep 17 00:00:00 2001 From: Roland Schneider Date: Sun, 13 Feb 2022 15:53:43 +0100 Subject: [PATCH] generate models mobile_device & virtual_key --- common/models/MobileDevice.php | 57 ++++++++++++++++++++++++++++++++++ common/models/VirtualKey.php | 57 ++++++++++++++++++++++++++++++++++ 2 files changed, 114 insertions(+) create mode 100644 common/models/MobileDevice.php create mode 100644 common/models/VirtualKey.php diff --git a/common/models/MobileDevice.php b/common/models/MobileDevice.php new file mode 100644 index 0000000..01eb976 --- /dev/null +++ b/common/models/MobileDevice.php @@ -0,0 +1,57 @@ + 20], + [['device_identifier'], 'string', 'max' => 255] + ]; + } + + /** + * @inheritdoc + */ + public function attributeLabels() + { + return [ + 'id' => Yii::t('common/mobiledevice', 'ID'), + 'id_card' => Yii::t('common/mobiledevice', 'Id Card'), + 'status' => Yii::t('common/mobiledevice', 'Status'), + 'device_identifier' => Yii::t('common/mobiledevice', 'Device Identifier'), + 'activated_at' => Yii::t('common/mobiledevice', 'Activated At'), + 'created_at' => Yii::t('common/mobiledevice', 'Created At'), + 'updated_at' => Yii::t('common/mobiledevice', 'Updated At'), + ]; + } +} diff --git a/common/models/VirtualKey.php b/common/models/VirtualKey.php new file mode 100644 index 0000000..968f0fa --- /dev/null +++ b/common/models/VirtualKey.php @@ -0,0 +1,57 @@ + Yii::t('common/mobiledevice', 'ID'), + 'id_card' => Yii::t('common/mobiledevice', 'Id Card'), + 'id_key' => Yii::t('common/mobiledevice', 'Id Key'), + 'valid_until' => Yii::t('common/mobiledevice', 'Valid Until'), + 'direction_in_at' => Yii::t('common/mobiledevice', 'Direction In At'), + 'direction_out_at' => Yii::t('common/mobiledevice', 'Direction Out At'), + 'created_at' => Yii::t('common/mobiledevice', 'Created At'), + 'updated_at' => Yii::t('common/mobiledevice', 'Updated At'), + ]; + } +}