Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Castopod
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Albatroz Jeremias
Castopod
Commits
a333d291
Commit
a333d291
authored
4 years ago
by
Benjamin Bellamy
Committed by
Yassine Doghri
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
feat: add platform models
parent
ce593441
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/Models/PlatformLinkModel.php
+31
-0
31 additions, 0 deletions
app/Models/PlatformLinkModel.php
app/Models/PlatformModel.php
+36
-0
36 additions, 0 deletions
app/Models/PlatformModel.php
with
67 additions
and
0 deletions
app/Models/PlatformLinkModel.php
0 → 100644
+
31
−
0
View file @
a333d291
<?php
/**
* Class PlatformLinkModel
* Model for platform links table in database
* @author Benjamin Bellamy <ben@podlibre.org>
* @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
PlatformLinkModel
extends
Model
{
protected
$table
=
'platform_links'
;
protected
$primaryKey
=
'id'
;
protected
$allowedFields
=
[
'podcast_id'
,
'platform_id'
,
'link_url'
,
'comment'
,
'visible'
,
];
protected
$returnType
=
'App\Entities\PlatformLink'
;
protected
$useSoftDeletes
=
false
;
protected
$useTimestamps
=
true
;
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app/Models/PlatformModel.php
0 → 100644
+
36
−
0
View file @
a333d291
<?php
/**
* Class PlatformModel
* Model for platforms table in database
* @author Benjamin Bellamy <ben@podlibre.org>
* @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'
;
protected
$useSoftDeletes
=
false
;
protected
$useTimestamps
=
true
;
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment