123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <?php
- namespace app\models;
- use Yii;
- class MobileCert extends \app\common\models\EActiveRecord
- {
-
- public static function tableName()
- {
- return '{{%mobile_cert}}';
- }
-
- public function rules()
- {
- return [
- [['user_id', 'cert', 'request_from', 'sent_time', 'cert_time'], 'integer'],
- [['mobile'], 'string', 'max' => 11],
- [['cert_key'], 'string', 'max' => 15],
- ];
- }
-
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'user_id' => 'User ID',
- 'mobile' => 'Mobile',
- 'cert_key' => 'Cert Key',
- 'cert' => 'Cert',
- 'request_from' => 'Request From',
- 'sent_time' => 'Sent Time',
- 'cert_time' => 'Cert Time',
- ];
- }
- }
|