2020-06-08 20:32:42 +00:00
|
|
|
<?php
|
2020-06-10 15:00:12 +00:00
|
|
|
/**
|
|
|
|
* @copyright 2020 Podlibre
|
|
|
|
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
|
|
|
|
* @link https://castopod.org/
|
|
|
|
*/
|
2020-06-08 20:32:42 +00:00
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
use CodeIgniter\Model;
|
|
|
|
|
|
|
|
class EpisodeModel extends Model
|
|
|
|
{
|
|
|
|
protected $table = 'episodes';
|
|
|
|
protected $primaryKey = 'id';
|
|
|
|
|
|
|
|
protected $allowedFields = [
|
2020-06-10 15:00:12 +00:00
|
|
|
'podcast_id',
|
2020-06-08 20:32:42 +00:00
|
|
|
'title',
|
2020-06-10 15:00:12 +00:00
|
|
|
'slug',
|
2020-06-08 20:32:42 +00:00
|
|
|
'enclosure_url',
|
|
|
|
'enclosure_length',
|
|
|
|
'enclosure_type',
|
|
|
|
'guid',
|
|
|
|
'pub_date',
|
|
|
|
'description',
|
|
|
|
'duration',
|
|
|
|
'image',
|
|
|
|
'explicit',
|
2020-06-12 19:31:10 +00:00
|
|
|
'number',
|
2020-06-08 20:32:42 +00:00
|
|
|
'season_number',
|
|
|
|
'type',
|
|
|
|
'block',
|
|
|
|
];
|
|
|
|
|
|
|
|
protected $returnType = 'App\Entities\Episode';
|
|
|
|
protected $useSoftDeletes = false;
|
|
|
|
|
|
|
|
protected $useTimestamps = true;
|
|
|
|
}
|