CinemaIlk.php 396 B

12345678910111213141516171819202122
  1. <?php
  2. namespace app\model;
  3. use support\Model;
  4. class CinemaIlk extends Model
  5. {
  6. public $table = 'cinema_ilk';
  7. public $primaryKey = 'ilk_id';
  8. public const CREATED_AT = 'ilk_add_time';
  9. public const UPDATED_AT = 'ilk_update_time';
  10. protected $dateFormat = 'U';
  11. public function getIlkAddTimeAttribute($value){
  12. return date('Y-m-d H:i:s',strtotime($value));
  13. }
  14. }