mirror of
https://code.castopod.org/adaures/castopod.git
synced 2024-10-09 17:56:50 +02:00
ed6e953010
- add .editorconfig file - format all files to comply with castopod's coding style - switch parsedown dependency with commonmark library to better follow commonmark spec for markdown - add prettier command to format all project files at once closes #16
39 lines
782 B
PHP
39 lines
782 B
PHP
<?php
|
|
|
|
/**
|
|
* Class PlatformModel
|
|
* Model for platforms table in database
|
|
*
|
|
* @copyright 2020 Podlibre
|
|
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
|
|
* @link https://castopod.org/
|
|
*/
|
|
|
|
namespace App\Models;
|
|
|
|
use CodeIgniter\Model;
|
|
|
|
class PlatformModel extends Model
|
|
{
|
|
protected $table = 'platforms';
|
|
protected $primaryKey = 'id';
|
|
|
|
protected $allowedFields = [
|
|
'name',
|
|
'home_url',
|
|
'submit_url',
|
|
'iosapp_url',
|
|
'androidapp_url',
|
|
'comment',
|
|
'display_by_default',
|
|
'ios_deeplink',
|
|
'android_deeplink',
|
|
'logo_file_name',
|
|
];
|
|
|
|
protected $returnType = \App\Entities\Platform::class;
|
|
protected $useSoftDeletes = false;
|
|
|
|
protected $useTimestamps = true;
|
|
}
|