| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- <?php
- namespace app\models;
- use Yii;
- use yii\db\ActiveRecord;
- /**
- * This is the model class for table "{{%settings}}".
- *
- * @property int $id
- * @property int $invoce
- * @property int $act
- * @property int $time
- * @property int $created_at
- * @property int $updated_at
- */
- class Settings extends ActiveRecord
- {
- public function behaviors()
- {
- return [
- 'timestamp' => [
- 'class' => 'yii\behaviors\TimestampBehavior',
- 'attributes' => [
- ActiveRecord::EVENT_BEFORE_INSERT => ['created_at', 'updated_at'],
- ActiveRecord::EVENT_BEFORE_UPDATE => ['updated_at'],
- ],
- ],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%settings}}';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['invoce', 'act', 'time'], 'required'],
- [['invoce', 'act', 'time', 'created_at', 'updated_at'], 'integer'],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'invoce' => 'Invoce',
- 'act' => 'Act',
- 'time' => 'Time',
- 'created_at' => 'Created At',
- 'updated_at' => 'Updated At',
- ];
- }
- }
|