| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?php
- namespace app\models;
- use Yii;
- /**
- * This is the model class for table "posts".
- *
- * @property integer $id
- * @property integer $page
- * @property string $text
- * @property integer $status
- */
- class Posts extends \yii\db\ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return 'posts';
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['page', 'text'], 'required'],
- [['page', 'status'], 'integer'],
- [['text'], 'string']
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => Yii::t('app', 'ID'),
- 'page' => Yii::t('app', 'Page'),
- 'text' => Yii::t('app', 'Text'),
- 'status' => Yii::t('app', 'Status'),
- ];
- }
- }
|