[ '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', ]; } }