2023-06-26 19:59:04 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace tps\Airport\Models;
|
|
|
|
|
|
|
|
|
|
use Model;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Model
|
|
|
|
|
*/
|
|
|
|
|
class Content extends Model
|
|
|
|
|
{
|
|
|
|
|
use \October\Rain\Database\Traits\Validation;
|
|
|
|
|
|
|
|
|
|
use \October\Rain\Database\Traits\SoftDelete;
|
|
|
|
|
|
|
|
|
|
protected $dates = ['deleted_at'];
|
|
|
|
|
|
|
|
|
|
protected $jsonable = ['data'];
|
2023-10-31 05:19:41 +00:00
|
|
|
|
|
|
|
|
public $implement = ['@RainLab.Translate.Behaviors.TranslatableModel'];
|
|
|
|
|
|
|
|
|
|
public $translatable = [
|
|
|
|
|
'meta_title',
|
|
|
|
|
'meta_description',
|
|
|
|
|
'meta_keywords',
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
public $hasMany = [
|
|
|
|
|
'view' => [
|
|
|
|
|
'Tps\Pageview\Models\PageVisit',
|
|
|
|
|
'key' => 'page'
|
|
|
|
|
]
|
|
|
|
|
];
|
2023-06-26 19:59:04 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @var string The database table used by the model.
|
|
|
|
|
*/
|
|
|
|
|
public $table = 'tps_airport_contents';
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @var array Validation rules
|
|
|
|
|
*/
|
|
|
|
|
public $rules = [];
|
|
|
|
|
}
|