| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- <?php
- /**
- * Author: lf
- * Blog: https://blog.feehi.com
- * Email: job@feehi.com
- * Created at: 2016-10-16 17:15
- */
- namespace common\models;
- use Yii;
- use yii\behaviors\TimestampBehavior;
- /**
- * This is the model class for table "{{%article_meta}}".
- *
- * @property string $aid
- * @property string $keyName
- * @property string $value
- * @property string $ip
- * @property string $created_at
- */
- class ArticleMeta extends \yii\db\ActiveRecord
- {
- public function behaviors()
- {
- return [
- [
- 'class' => TimestampBehavior::className(),
- 'updatedAtAttribute' => false,
- ],
- ];
- }
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return '{{%article_meta}}';
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['aid'], 'required'],
- [['aid', 'created_at'], 'integer'],
- [['key'], 'string', 'max' => 255],
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => Yii::t('app', 'ID'),
- 'aid' => Yii::t('app', 'Aid'),
- 'key' => Yii::t('app', 'Key'),
- 'value' => Yii::t('app', 'Value'),
- 'created_at' => Yii::t('app', 'Created At'),
- ];
- }
- }
|