Berkarar/plugins/tps/about/models/About.php

42 lines
835 B
PHP
Raw Normal View History

2023-08-19 10:28:39 +00:00
<?php namespace Tps\About\Models;
use Model;
use October\Rain\Database\Traits\Sortable;
use October\Rain\Database\Traits\Validation;
/**
* Model
*/
class About extends Model
{
use Validation;
use Sortable;
public $implement = ['RainLab.Translate.Behaviors.TranslatableModel'];
/*
* Disable timestamps by default.
* Remove this line if timestamps are defined in the database table.
*/
public $timestamps = false;
/**
* @var string The database table used by the model.
*/
public $table = 'tps_about_';
/**
* @var array Validation rules
*/
public $rules = [
];
public $attachOne = [
'image' => 'Tps\Shops\Classes\Attachment',
'image2' => 'Tps\Shops\Classes\Attachment',
];
public $translatable = ['name', 'description'];
}