123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
- namespace app\models;
- use Yii;
- /**
- * This is the model class for table "{{%ip_banned}}".
- *
- * @property int $ip_banned_id id
- * @property int $ip IP
- * @property int $expires 解封日期
- */
- class IpBanned extends \app\common\models\EActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%ip_banned}}';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['ip'], 'required'],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'ip_banned_id' => Yii::t('attr','ip_banned.id'),
- 'ip' => Yii::t('attr','ip_banned.ip'),
- 'expires' => Yii::t('attr','ip_banned.expires')
- ];
- }
- }
|